Class DefaultCmsCacheService

    • Constructor Detail

      • DefaultCmsCacheService

        public DefaultCmsCacheService()
    • Method Detail

      • getKey

        public CacheKey getKey​(javax.servlet.http.HttpServletRequest request,
                               AbstractCMSComponentModel component)
        Description copied from interface: CmsCacheService
        Gets the cache key for the current component and request
        Specified by:
        getKey in interface CmsCacheService
        Parameters:
        request - the current request
        component - the current component
        Returns:
        the cache key
      • get

        public java.lang.String get​(CacheKey key)
        Description copied from interface: CmsCacheService
        Gets cache content by key
        Specified by:
        get in interface CmsCacheService
        Parameters:
        key - the cache key
        Returns:
        the cache content
      • put

        public void put​(CacheKey key,
                        java.lang.String content)
        Description copied from interface: CmsCacheService
        Stores cache content by key
        Specified by:
        put in interface CmsCacheService
        Parameters:
        key - the cache key
        content - the cache content
      • useCache

        public boolean useCache​(javax.servlet.http.HttpServletRequest request,
                                AbstractCMSComponentModel component)
        Description copied from interface: CmsCacheService
        Checks if cache is enabled
        Specified by:
        useCache in interface CmsCacheService
        Parameters:
        request - the current request
        component - the current component
        Returns:
        true if cache is enabled
      • getUseCache

        protected com.google.common.base.Supplier<java.lang.Boolean> getUseCache()
      • useCacheInternal

        protected boolean useCacheInternal()
      • setConfigurationService

        public void setConfigurationService​(ConfigurationService configurationService)
      • setCacheController

        public void setCacheController​(CacheController cacheController)
      • isPreviewOrLiveEditEnabled

        protected boolean isPreviewOrLiveEditEnabled​(javax.servlet.http.HttpServletRequest request)