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>

public class DefaultCacheFactory<K extends Serializable,V> extends AbstractCacheFactory<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 Details

    • DefaultCacheFactory

      public DefaultCacheFactory()
  • Method Details

    • createCache

      public SimpleCache<K,V> createCache(String cacheName)
      Description copied from interface: CacheFactory
      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