public class PathCacheService extends AbstractCacheableService implements IPathCacheService, PageEventListener
BEAN_NAME| Modifier and Type | Method and Description |
|---|---|
String |
getFromCache(String strKey)
Gets an object from the cache
|
String |
getKey(String strXPageName,
int nMode,
javax.servlet.http.HttpServletRequest request)
Constructs a cache key
|
String |
getKey(String strXPageName,
int nMode,
String strTitlesUrls,
javax.servlet.http.HttpServletRequest request)
Constructs a cache key
|
String |
getName()
Returns the Service name
|
void |
processPageEvent(PageEvent event)
Process a page event
|
void |
putInCache(String strKey,
String path)
Put a path in cache
|
clone, dispose, enableCache, getCache, getCacheSize, getInfos, getKeys, getMaxElements, getMemorySize, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCachepublic String getName()
LuteceServicegetName in interface LuteceServicepublic String getKey(String strXPageName, int nMode, javax.servlet.http.HttpServletRequest request)
IPathCacheServicegetKey in interface IPathCacheServicestrXPageName - the XPage namenMode - the moderequest - the requestnull if for instance the cache is not enabledpublic String getKey(String strXPageName, int nMode, String strTitlesUrls, javax.servlet.http.HttpServletRequest request)
IPathCacheServicegetKey in interface IPathCacheServicestrXPageName - the XPage namenMode - the modestrTitlesUrls - list of links (url and titles)request - the request the requestnull if for instance the cache is not enabledpublic String getFromCache(String strKey)
AbstractCacheableServicegetFromCache in interface IPathCacheServicegetFromCache in class AbstractCacheableServicestrKey - The key of the object to retrieve from the cachepublic void putInCache(String strKey, String path)
IPathCacheServiceputInCache in interface IPathCacheServicestrKey - the cache keypath - the path htmlpublic void processPageEvent(PageEvent event)
PageEventListenerprocessPageEvent in interface PageEventListenerevent - The event to processCopyright © 2020 City of Paris. All rights reserved.