Interface CmsCacheService
-
- All Known Implementing Classes:
DefaultCmsCacheService
public interface CmsCacheServiceDefines an API to interact with CMS cache
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringget(CacheKey key)Gets cache content by keyCacheKeygetKey(javax.servlet.http.HttpServletRequest request, AbstractCMSComponentModel component)Gets the cache key for the current component and requestvoidput(CacheKey key, java.lang.String content)Stores cache content by keybooleanuseCache(javax.servlet.http.HttpServletRequest request, AbstractCMSComponentModel component)Checks if cache is enabled
-
-
-
Method Detail
-
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
java.lang.String get(CacheKey key)
Gets cache content by key- Parameters:
key- the cache key- Returns:
- the cache content
-
put
void put(CacheKey key, java.lang.String content)
Stores cache content by key- Parameters:
key- the cache keycontent- the cache content
-
getKey
CacheKey getKey(javax.servlet.http.HttpServletRequest request, AbstractCMSComponentModel component)
Gets the cache key for the current component and request- Parameters:
request- the current requestcomponent- the current component- Returns:
- the cache key
-
-