Package org.alfresco.repo.cache
Interface CacheFactory<K extends Serializable,V>
-
- All Known Implementing Classes:
AbstractCacheFactory,DefaultCacheFactory
public interface CacheFactory<K extends Serializable,V>Cache factory interface. Implementing classes createSimpleCacheobjects for a given cache name. It is the responsibility of the implementation to lookup specific cache configuration details using the supplied name.- Author:
- Matt Ward
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SimpleCache<K,V>createCache(String cacheName)Creates a cache.
-
-
-
Method Detail
-
createCache
SimpleCache<K,V> createCache(String cacheName)
Creates 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
-
-