Class DefaultCacheFactory<K extends java.io.Serializable,​V>

  • All Implemented Interfaces:
    CacheFactory<K,​V>

    public class DefaultCacheFactory<K extends java.io.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 Detail

      • DefaultCacheFactory

        public DefaultCacheFactory()
    • Method Detail

      • createCache

        public org.alfresco.repo.cache.SimpleCache<K,​V> createCache​(java.lang.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