Interface CacheFactory<K extends java.io.Serializable,​V>

  • All Known Implementing Classes:
    AbstractCacheFactory, DefaultCacheFactory

    public interface CacheFactory<K extends java.io.Serializable,​V>
    Cache factory interface. Implementing classes create SimpleCache objects 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 Detail

      • createCache

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