Interface CmsCacheService
- All Known Implementing Classes:
DefaultCmsCacheService
public interface CmsCacheService
Defines an API to interact with CMS cache
-
Method Summary
Modifier and TypeMethodDescriptionGets cache content by keygetKey(javax.servlet.http.HttpServletRequest request, AbstractCMSComponentModel component) Gets the cache key for the current component and requestvoidStores cache content by keybooleanuseCache(javax.servlet.http.HttpServletRequest request, AbstractCMSComponentModel component) Checks if cache is enabled
-
Method Details
-
useCache
boolean useCache(javax.servlet.http.HttpServletRequest request, AbstractCMSComponentModel component) Checks if cache is enabled- Parameters:
request- the current requestcomponent- the current component- Returns:
- true if cache is enabled
-
get
Gets cache content by key- Parameters:
key- the cache key- Returns:
- the cache content
-
put
Stores cache content by key- Parameters:
key- the cache keycontent- the cache content
-
getKey
Gets the cache key for the current component and request- Parameters:
request- the current requestcomponent- the current component- Returns:
- the cache key
-