de.innovationgate.utils.cache
public class CacheFactory extends java.lang.Object
Cache
objectsModifier and Type | Field and Description |
---|---|
static java.lang.String |
SYSPROPERTY_CACHE
Sysproperty determining the cache core implementation to use.
|
Constructor and Description |
---|
CacheFactory() |
Modifier and Type | Method and Description |
---|---|
static Cache |
createCache(java.lang.String name,
int capacity,
java.util.Map params)
Creates a cache object
|
public static final java.lang.String SYSPROPERTY_CACHE
CacheCore
public static Cache createCache(java.lang.String name, int capacity, java.util.Map params) throws CacheException
name
- A unique name for this cache to create.capacity
- A maximum capacity of entries in the cache. Specify 0 for no limit.params
- Optional params using constants PARAM_... on class Cache
as keys. May be null.CacheException