fr.paris.lutece.plugins.document.web
Class ResourceServletCache

java.lang.Object
  extended by fr.paris.lutece.portal.service.cache.AbstractCacheableService
      extended by fr.paris.lutece.plugins.document.web.ResourceServletCache
All Implemented Interfaces:
fr.paris.lutece.portal.service.cache.CacheableService, fr.paris.lutece.portal.service.util.LuteceService, java.lang.Cloneable, net.sf.ehcache.event.CacheEventListener

public class ResourceServletCache
extends fr.paris.lutece.portal.service.cache.AbstractCacheableService

ResourceServletCache


Constructor Summary
ResourceServletCache()
           
 
Method Summary
 ResourceValueObject get(java.lang.String strKey)
          Get from the cache
 java.lang.String getName()
          Gets the cache name
 void put(java.lang.String strKey, ResourceValueObject resource)
          Put an object into the cache
 
Methods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, resetCache
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceServletCache

public ResourceServletCache()
Method Detail

getName

public final java.lang.String getName()
Gets the cache name

Returns:
The cache name

get

public ResourceValueObject get(java.lang.String strKey)
Get from the cache

Parameters:
strKey - The key
Returns:
The object or null if not found

put

public void put(java.lang.String strKey,
                ResourceValueObject resource)
Put an object into the cache

Parameters:
strKey - The key
resource - The value


Copyright © 2011 Mairie de Paris. All Rights Reserved.