Class ResourceServletCache
java.lang.Object
fr.paris.lutece.portal.service.cache.AbstractCacheableService<String,ResourceValueObject>
fr.paris.lutece.plugins.document.web.ResourceServletCache
- All Implemented Interfaces:
fr.paris.lutece.portal.service.cache.CacheableService<String,,ResourceValueObject> fr.paris.lutece.portal.service.cache.Lutece107Cache<String,,ResourceValueObject> fr.paris.lutece.portal.service.util.LuteceService,Closeable,Serializable,AutoCloseable,Iterable<javax.cache.Cache.Entry<String,,ResourceValueObject>> javax.cache.Cache<String,ResourceValueObject>
public class ResourceServletCache
extends fr.paris.lutece.portal.service.cache.AbstractCacheableService<String,ResourceValueObject>
ResourceServletCache
- See Also:
-
Nested Class Summary
-
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
clear, close, containsKey, deregisterCacheEntryListener, enableCache, getAll, getAndPut, getAndRemove, getAndReplace, getCache, getCacheManager, getCacheSize, getConfiguration, getFromCache, getInfos, getKeys, initCache, initCache, initCache, invoke, invokeAll, isCacheEnable, isClosed, isPreventGlobalReset, isPreventReset, isRequired, iterator, loadAll, putAll, putIfAbsent, putInCache, registerCacheEntryListener, remove, remove, removeAll, removeAll, removeKey, replace, replace, resetCache, setCache, unwrapMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.portal.service.cache.CacheableService
getMaxElements, getMemorySize, getTimeToLiveMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ResourceServletCache
public ResourceServletCache()Default constructor
-
-
Method Details
-
getName
Gets the cache name- Returns:
- The cache name
-
get
Get from the cache- Specified by:
getin interfacejavax.cache.Cache<String,ResourceValueObject> - Overrides:
getin classfr.paris.lutece.portal.service.cache.AbstractCacheableService<String,ResourceValueObject> - Parameters:
strKey- The key- Returns:
- The object or null if not found
-
put
Put an object into the cache- Specified by:
putin interfacejavax.cache.Cache<String,ResourceValueObject> - Overrides:
putin classfr.paris.lutece.portal.service.cache.AbstractCacheableService<String,ResourceValueObject> - Parameters:
strKey- The keyresource- The value
-