Class DefaultCmsCacheService
java.lang.Object
de.hybris.platform.acceleratorcms.component.cache.impl.DefaultCmsCacheService
- All Implemented Interfaces:
CmsCacheService
Default implementation of
CmsCacheService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets cache content by keyprotected CacheControllerprotected Map<String,CmsCacheKeyProvider<? extends AbstractCMSComponentModel>> protected ConfigurationServicegetKey(javax.servlet.http.HttpServletRequest request, AbstractCMSComponentModel component) Gets the cache key for the current component and requestprotected com.google.common.base.Supplier<Boolean>protected booleanisPreviewOrLiveEditEnabled(javax.servlet.http.HttpServletRequest request) voidStores cache content by keyvoidsetCacheController(CacheController cacheController) voidsetCacheKeyProviders(Map<String, CmsCacheKeyProvider<? extends AbstractCMSComponentModel>> cacheKeyProviders) voidsetConfigurationService(ConfigurationService configurationService) booleanuseCache(javax.servlet.http.HttpServletRequest request, AbstractCMSComponentModel component) Checks if cache is enabledprotected boolean
-
Constructor Details
-
DefaultCmsCacheService
public DefaultCmsCacheService()
-
-
Method Details
-
getKey
public CacheKey getKey(javax.servlet.http.HttpServletRequest request, AbstractCMSComponentModel component) Description copied from interface:CmsCacheServiceGets the cache key for the current component and request- Specified by:
getKeyin interfaceCmsCacheService- Parameters:
request- the current requestcomponent- the current component- Returns:
- the cache key
-
get
Description copied from interface:CmsCacheServiceGets cache content by key- Specified by:
getin interfaceCmsCacheService- Parameters:
key- the cache key- Returns:
- the cache content
-
put
Description copied from interface:CmsCacheServiceStores cache content by key- Specified by:
putin interfaceCmsCacheService- Parameters:
key- the cache keycontent- the cache content
-
useCache
public boolean useCache(javax.servlet.http.HttpServletRequest request, AbstractCMSComponentModel component) Description copied from interface:CmsCacheServiceChecks if cache is enabled- Specified by:
useCachein interfaceCmsCacheService- Parameters:
request- the current requestcomponent- the current component- Returns:
- true if cache is enabled
-
getUseCache
-
useCacheInternal
protected boolean useCacheInternal() -
getCacheKeyProviders
protected Map<String,CmsCacheKeyProvider<? extends AbstractCMSComponentModel>> getCacheKeyProviders() -
setCacheKeyProviders
public void setCacheKeyProviders(Map<String, CmsCacheKeyProvider<? extends AbstractCMSComponentModel>> cacheKeyProviders) -
getConfigurationService
-
setConfigurationService
-
getCacheController
-
setCacheController
-
isPreviewOrLiveEditEnabled
protected boolean isPreviewOrLiveEditEnabled(javax.servlet.http.HttpServletRequest request)
-