Class MemAppCacheManager

  • All Implemented Interfaces:
    com.appslandia.common.caching.AppCacheManager

    public class MemAppCacheManager
    extends Object
    implements com.appslandia.common.caching.AppCacheManager
    Author:
    Loc Ha
    • Constructor Detail

      • MemAppCacheManager

        public MemAppCacheManager()
    • Method Detail

      • createCache

        public <K,​V> com.appslandia.common.caching.AppCache<K,​V> createCache​(String cacheName,
                                                                                         int size)
      • getCache

        public <K,​V> com.appslandia.common.caching.AppCache<K,​V> getCache​(String cacheName)
        Specified by:
        getCache in interface com.appslandia.common.caching.AppCacheManager
      • clearCache

        public boolean clearCache​(String cacheName)
        Specified by:
        clearCache in interface com.appslandia.common.caching.AppCacheManager
      • destroyCache

        public boolean destroyCache​(String cacheName)
        Specified by:
        destroyCache in interface com.appslandia.common.caching.AppCacheManager
      • getCacheNames

        public Iterable<String> getCacheNames()
        Specified by:
        getCacheNames in interface com.appslandia.common.caching.AppCacheManager
      • close

        public void close()
        Specified by:
        close in interface com.appslandia.common.caching.AppCacheManager