Package org.alfresco.repo.cache
Class DefaultCacheFactory<K extends Serializable,V>
java.lang.Object
org.alfresco.repo.cache.AbstractCacheFactory<K,V>
org.alfresco.repo.cache.DefaultCacheFactory<K,V>
- All Implemented Interfaces:
CacheFactory<K,V>
CacheFactory implementation that creates DefaultSimpleCache instances. The caches are created with a capacity specified by the property {name}.maxItems. For example, a cache named cache.ticketsCache would have a capacity specified by the property cache.ticketsCache.maxItems- Author:
- Matt Ward
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.alfresco.repo.cache.AbstractCacheFactory
getProperty, setProperties
-
Constructor Details
-
DefaultCacheFactory
public DefaultCacheFactory()
-
-
Method Details
-
createCache
Description copied from interface:CacheFactoryCreates a cache. The type of cache (e.g. localised, clustered etc.) produced is dependant on the factory implementation, and will vary at runtime.- Parameters:
cacheName- String- Returns:
- SimpleCache
-