public class DefaultCmsCacheService extends java.lang.Object implements CmsCacheService
CmsCacheService| Constructor and Description |
|---|
DefaultCmsCacheService() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(CacheKey key)
Gets cache content by key
|
protected CacheController |
getCacheController() |
protected java.util.Map<java.lang.String,CmsCacheKeyProvider<? extends AbstractCMSComponentModel>> |
getCacheKeyProviders() |
protected ConfigurationService |
getConfigurationService() |
CacheKey |
getKey(HttpServletRequest request,
AbstractCMSComponentModel component)
Gets the cache key for the current component and request
|
protected <any> |
getUseCache() |
protected boolean |
isPreviewOrLiveEditEnabled(HttpServletRequest request) |
void |
put(CacheKey key,
java.lang.String content)
Stores cache content by key
|
void |
setCacheController(CacheController cacheController) |
void |
setCacheKeyProviders(java.util.Map<java.lang.String,CmsCacheKeyProvider<? extends AbstractCMSComponentModel>> cacheKeyProviders) |
void |
setConfigurationService(ConfigurationService configurationService) |
boolean |
useCache(HttpServletRequest request,
AbstractCMSComponentModel component)
Checks if cache is enabled
|
protected boolean |
useCacheInternal() |
public CacheKey getKey(HttpServletRequest request, AbstractCMSComponentModel component)
CmsCacheServicegetKey in interface CmsCacheServicerequest - the current requestcomponent - the current componentpublic java.lang.String get(CacheKey key)
CmsCacheServiceget in interface CmsCacheServicekey - the cache keypublic void put(CacheKey key, java.lang.String content)
CmsCacheServiceput in interface CmsCacheServicekey - the cache keycontent - the cache contentpublic boolean useCache(HttpServletRequest request,
AbstractCMSComponentModel component)
CmsCacheServiceuseCache in interface CmsCacheServicerequest - the current requestcomponent - the current componentprotected <any> getUseCache()
protected boolean useCacheInternal()
protected java.util.Map<java.lang.String,CmsCacheKeyProvider<? extends AbstractCMSComponentModel>> getCacheKeyProviders()
public void setCacheKeyProviders(java.util.Map<java.lang.String,CmsCacheKeyProvider<? extends AbstractCMSComponentModel>> cacheKeyProviders)
protected ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
protected CacheController getCacheController()
public void setCacheController(CacheController cacheController)
protected boolean isPreviewOrLiveEditEnabled(HttpServletRequest request)
Copyright © 2018 SAP SE. All Rights Reserved.