Class ApplicationCacheManager

  • All Implemented Interfaces:
    org.springframework.beans.factory.DisposableBean, org.springframework.cache.CacheManager

    public class ApplicationCacheManager
    extends Object
    implements org.springframework.cache.CacheManager, org.springframework.beans.factory.DisposableBean
    A CacheManager that is aware of Sites and Applications to avoid naming conflicts and also ensure no other Application can access the Cache.
    The TTL and maxIdle for the Cache can be configured using the application property "cacheConfig".
    See Also:
    ApplicationProperties.PROP_CACHE_CONFIG
    • Constructor Detail

      • ApplicationCacheManager

        public ApplicationCacheManager()
    • Method Detail

      • initialize

        public void initialize​(Site site,
                               Application application,
                               org.springframework.cache.CacheManager delegate)
      • getCache

        public org.springframework.cache.Cache getCache​(String name)
        Specified by:
        getCache in interface org.springframework.cache.CacheManager
      • getCacheNames

        public Collection<String> getCacheNames()
        Specified by:
        getCacheNames in interface org.springframework.cache.CacheManager
      • destroy

        public void destroy()
                     throws Exception
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
        Throws:
        Exception