Package org.alfresco.repo.cache
Class DefaultCacheFactory<K extends java.io.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>
public class DefaultCacheFactory<K extends java.io.Serializable,V> extends AbstractCacheFactory<K,V>
CacheFactoryimplementation that createsDefaultSimpleCacheinstances. 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 Constructor Description DefaultCacheFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.alfresco.repo.cache.SimpleCache<K,V>createCache(java.lang.String cacheName)Creates a cache.-
Methods inherited from class org.alfresco.repo.cache.AbstractCacheFactory
getProperty, setProperties
-
-
-
-
Method Detail
-
createCache
public org.alfresco.repo.cache.SimpleCache<K,V> createCache(java.lang.String cacheName)
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
-
-