Class DefaultCmsCacheService

java.lang.Object
de.hybris.platform.acceleratorcms.component.cache.impl.DefaultCmsCacheService
All Implemented Interfaces:
CmsCacheService

public class DefaultCmsCacheService extends Object implements CmsCacheService
Default implementation of CmsCacheService
  • Constructor Details

    • DefaultCmsCacheService

      public DefaultCmsCacheService()
  • Method Details

    • 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 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, 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<Boolean> getUseCache()
    • useCacheInternal

      protected boolean useCacheInternal()
    • getCacheKeyProviders

      protected Map<String,CmsCacheKeyProvider<? extends AbstractCMSComponentModel>> getCacheKeyProviders()
    • setCacheKeyProviders

      public void setCacheKeyProviders(Map<String,CmsCacheKeyProvider<? extends AbstractCMSComponentModel>> cacheKeyProviders)
    • getConfigurationService

      protected ConfigurationService getConfigurationService()
    • setConfigurationService

      public void setConfigurationService(ConfigurationService configurationService)
    • getCacheController

      protected CacheController getCacheController()
    • setCacheController

      public void setCacheController(CacheController cacheController)
    • isPreviewOrLiveEditEnabled

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