CacheInstance

A Cache Instance is a location, in addition to the default shared Dynamic Cache, where any J2EE application can store, distribute, and share data. This gives application greater flexibility and greater tuning of the cache resources. The programming interface to access this cache instance is called DistributedMap. See the DistributedMap API documentation in the WebSphere javadoc for more information.

Inherits from type ResourceEnvEntry and adds the following.

Attributes Summary
defaultPriority : intThe default priority for servlets that can be cached.
hashSize : intSpecifies a hash size when disk offload is enabled.
cacheSize : intA positive integer defining the maximum number of entries the cache will hold.
enableCacheReplication : boolean@since 6.
replicationTypeSpecifies the sharing policy of replicated objects across application servers.
pushFrequency : intA time interval, specified in seconds, which is used when replication type is PUSH.
useListenerContext : booleanSet this value to true to have invalidation events fired to registered invalidation listeners using the listener's J2EE context.
enableDiskOffload : booleanEnables disk offloading.
diskOffloadLocation : StringSpecifies a directory used for disk offload.
flushToDiskOnStop : booleanSet this value to true to have in memory cached objects saved to disk when the server is stopped.
cacheReplication : DRSSettingsConfigure distributed cache replication settings in order to maintain cache consistency across cache instances on different application servers.

Attribute Details

defaultPriority    -    The default priority for servlets that can be cached. It determines how long an entry will stay in a full cache. The recommended value is 1.
     data type:  int
     default Value:   1



hashSize    -    Specifies a hash size when disk offload is enabled. Valid values are powers of 2 (1, 2, 4, 8, ...).
     data type:  int
     default Value:   1024



cacheSize    -    A positive integer defining the maximum number of entries the cache will hold. Values are usually in the thousands, with no set maximum or minimum.
     data type:  int
     default Value:   2000



enableCacheReplication    -    @since 6.0.0
     data type: boolean
     default Value:   false
     Allowed Values:  true   false  



replicationType    -    Specifies the sharing policy of replicated objects across application servers. The value may be PUSH, PULL, PUSH_PULL or NONE, the default being NONE.
     data type: 
     default Value:   NONE



pushFrequency    -    A time interval, specified in seconds, which is used when replication type is PUSH. Default value is 1.
     data type:  int
     default Value:   1



useListenerContext    -    Set this value to true to have invalidation events fired to registered invalidation listeners using the listener's J2EE context.Applicable only to Object Cache Instances (not Servlet Cache Instances).
     data type: boolean
     default Value:   false
     Allowed Values:  true   false  



enableDiskOffload    -    Enables disk offloading.
     data type: boolean
     default Value:   false
     Allowed Values:  true   false  



diskOffloadLocation    -    Specifies a directory used for disk offload. This value is ignored if Enable Disk Offload is false.
     data type:  String
     default Value:   unspecified



flushToDiskOnStop    -    Set this value to true to have in memory cached objects saved to disk when the server is stopped. This value is ignored if Enable Disk Offload is false.
     data type: boolean
     default Value:   false
     Allowed Values:  true   false  



cacheReplication    -    Configure distributed cache replication settings in order to maintain cache consistency across cache instances on different application servers. This object will store replication related settings for a Data Replication Service end point.
     data type: DRSSettings


Copyright IBM Corp. 1997-2004