Class DefaultCacheManager

    • Constructor Detail

      • DefaultCacheManager

        public DefaultCacheManager()
    • Method Detail

      • putCache

        public Cache putCache​(String name,
                              int maxElementsInMemory)
        Puts cache object into store
        Specified by:
        putCache in interface CacheManager
        Parameters:
        name - cache name to store
        maxElementsInMemory - maximum number of objects to store in cache
        Returns:
        Cache object created
      • clearAllEntries

        public void clearAllEntries()
        Clears all available caches. Should not be used in production. Can be applied on "soft" application restart.
        Specified by:
        clearAllEntries in interface CacheManager
      • cacheExists

        public boolean cacheExists​(String name)
        Checks if cache name exists
        Specified by:
        cacheExists in interface CacheManager
        Parameters:
        name - cache name to find
        Returns:
        true if found, false if doesn't exist