Class CacheMgr


  • public final class CacheMgr
    extends Object
    This class is a facade and shields internal Fortress objects from specifics of the actual cache implementation that is in use.
    Author:
    Apache Directory Project
    • Method Detail

      • getInstance

        public static CacheMgr getInstance()
        Create or return the fortress cache manager reference.
        Returns:
        handle to the cache manager in effect for process.
      • getCache

        public Cache getCache​(String cacheName)
        Create a new reference to the ehcache cache implementation.
        Parameters:
        cacheName - contains the name of the cache to retrieve
        Returns:
        reference to cache for specified object.
      • clearAll

        public void clearAll()
        Used to clear all elements from all cache objects.