Class ResourceServletCache
java.lang.Object
fr.paris.lutece.portal.service.cache.AbstractCacheableService
fr.paris.lutece.plugins.document.web.ResourceServletCache
- All Implemented Interfaces:
fr.paris.lutece.portal.service.cache.CacheableService,fr.paris.lutece.portal.service.util.LuteceService,Cloneable,net.sf.ehcache.event.CacheEventListener
public class ResourceServletCache
extends fr.paris.lutece.portal.service.cache.AbstractCacheableService
ResourceServletCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet from the cachefinal StringgetName()Gets the cache namevoidput(String strKey, ResourceValueObject resource) Put an object into the cacheMethods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getStatistics, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCache
-
Constructor Details
-
ResourceServletCache
public ResourceServletCache()Default constructor
-
-
Method Details
-
getName
Gets the cache name- Returns:
- The cache name
-
get
Get from the cache- Parameters:
strKey- The key- Returns:
- The object or null if not found
-
put
Put an object into the cache- Parameters:
strKey- The keyresource- The value
-