Properties

These are the available properties of the CacheConfiguration type. The property names are used in the external configuration files. They can be found as constants in CacheConfigurationPropertyNames.

Property Type Description

key-type

Fully Qualified Class Name

Determines the required type of keys for the Cache.

value-type

Fully Qualified Class Name

Determines the required type of values for the Cache.

storage-configuration-resource-name

absolute or relative file name

Path for the storage configuration for the backing store.

cache-loader-factory

Fully Qualified Class Name of JCache factory implementation for a javax.cache.integration.CacheLoader

A CacheLoader should be configured for "Read Through" caches to load values when a cache miss occurs.

cache-writer-factory

Fully Qualified Class Name of JCache factory implementation for a javax.cache.integration.CacheWriter

A CacheWriter is used for write-through to an external resource.

expiry-policy-factory

Fully Qualified Class Name of JCache factory implementation for a javax.cache.expiry.ExpiryPolicy

Determines when cache entries will expire based on creation, access and modification operations.

eviction-manager-factory

Fully Qualified Class Name of JCache factory implementation for a org.eclipse.store.cache.types.EvictionManager

Clears cache entries using a policy. Works interval-based or on entry creation.

read-through

boolean parsed according to the java.lang.Boolean.parseBoolean() rules

When in "read-through" mode, cache misses that occur due to cache entries not existing as a result of performing a "get" will appropriately cause the configured CacheLoader to be invoked.

write-through

boolean parsed according to the java.lang.Boolean.parseBoolean() rules

When in "write-through" mode, cache updates that occur as a result of performing "put" operations will appropriately cause the configured CacheWriter to be invoked.

store-by-value

boolean parsed according to the java.lang.Boolean.parseBoolean() rules

When a cache is storeByValue, any mutation to the key or value does not affect the key of value stored in the cache.

statistics-enabled

boolean parsed according to the java.lang.Boolean.parseBoolean() rules

Checks whether statistics collection is enabled in this cache.

management-enabled

boolean parsed according to the java.lang.Boolean.parseBoolean() rules

Checks whether management is enabled on this cache.