Interface IPathCacheService
-
- All Known Implementing Classes:
PathCacheService
public interface IPathCacheServiceService interface for XPage path caching
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetFromCache(String strKey)Get the path html from cacheStringgetKey(String strXPageName, int nMode, String strTitlesUrls, javax.servlet.http.HttpServletRequest request)Constructs a cache keyStringgetKey(String strXPageName, int nMode, javax.servlet.http.HttpServletRequest request)Constructs a cache keyvoidputInCache(String strKey, String path)Put a path in cache
-
-
-
Field Detail
-
BEAN_NAME
static final String BEAN_NAME
Bean name- See Also:
- Constant Field Values
-
-
Method Detail
-
getKey
String getKey(String strXPageName, int nMode, javax.servlet.http.HttpServletRequest request)
Constructs a cache key- Parameters:
strXPageName- the XPage namenMode- the moderequest- the request- Returns:
- the cache key, or
nullif for instance the cache is not enabled
-
getKey
String getKey(String strXPageName, int nMode, String strTitlesUrls, javax.servlet.http.HttpServletRequest request)
Constructs a cache key- Parameters:
strXPageName- the XPage namenMode- the modestrTitlesUrls- list of links (url and titles)request- the request the request- Returns:
- the cache key, or
nullif for instance the cache is not enabled
-
getFromCache
String getFromCache(String strKey)
Get the path html from cache- Parameters:
strKey- the cache key- Returns:
- the path html, or
nullif it's not in cache or the cache is not enabled
-
-