Cache Property Editor

The Cache Property editor enables you to specify cache parameters, which consist of name and value pairs. You open the Cache Property property editor by selecting the Cache Property property and its ellipsis (...) button from the Sun ONE AS pane of the web.xml property sheet.

Adding a cache parameter

To add a cache parameter:

  1. From the Cache Property editor, click Add.
  2. Select the parameter name in the Param Name field and type its value in the Param Value field. See List of Parameters below for possible parameters.
  3. Edit the description of the parameter in the Description field.
  4. Click OK. The information you have specified is reflected in the property editor. You may add additional parameters by clicking Add.

Editing a cache parameter

To edit a cache parameter:

  1. From the Cache Property editor, click Add.
  2. Change the parameter name, value, and description in the dialog box. See List of Parameters below for possible parameters.
  3. Click OK. The information you have modified is reflected in the property editor.

Removing a cache parameter

From the Cache Property editor, select the parameter and click Remove. The parameter is removed from the table in the property editor.

List of Parameters

The following describes cache parameters:

Property Name Value
cacheClassName This parameter specifies the fully qualified name of the class that implements the cache functionality. The possible values are:
  • com.sun.appserv.web.cache.LruCache
    A bounded cache with an LRU (least recently used) cache replacement policy.
  • com.sun.appserv.web.cache.BaseCache
    An unbounded cache suitable if the maximum number of entries is known.
  • com.sun.appserv.web.cache.MultiLruCache
    A cache suitable for a large number of entries (>4096). Uses the MultiLRUSegmentSize property.
  • com.sun.appserv.web.cache.BoundedMultiLruCache
    A cache suitable for limiting the cache size by memory rather than number of entries. Uses the MaxSize property.
MultiLRUSegmentSize This parameter specifies the number of entries in a segment of the cache table that should have its own LRU (least recently used) list. It is applicable only if cacheClassName is set to com.sun.appserv.web.cache.MultiLruCache.
MaxSize This parameter specifies an upper bound on the cache memory size in bytes (KB or MB units). Example values are 32 KB or 2 MB. It is applicable only if cacheClassName is set to com.sun.appserv.web.cache.BoundedMultiLruCache.

See also
   Web Module Property Sheet: Sun ONE AS Tab
Cache Property Editor

Legal Notices