Class InterfaceInstanceHtmlCache<T>
- java.lang.Object
-
- lumis.portal.cache.PortalCache<T>
-
- lumis.portal.serviceinterfaceinstance.InterfaceInstanceHtmlCache<T>
-
public class InterfaceInstanceHtmlCache<T> extends PortalCache<T>
Cache implementation for serviceInterfaceInstanceHtmlCache to support timeout expiration.- Since:
- 7.0.0
- Version:
- $Revision: 21231 $ $Date: 2018-04-24 19:34:27 -0300 (Tue, 24 Apr 2018) $
-
-
Field Summary
-
Fields inherited from class lumis.portal.cache.PortalCache
MAX_AGE_INFINITE
-
-
Constructor Summary
Constructors Constructor Description InterfaceInstanceHtmlCache(java.lang.String cacheId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get(java.lang.String key, int maxAge)
Returns the value of the key if the maxAge has not expired since the last put in the cache for the current key.-
Methods inherited from class lumis.portal.cache.PortalCache
clear, clear, clearAll, destroy, fetch, fetch, fetch, fetch, fetch, fetch, get, getCache, getCacheIds, getCapacity, getId, getMaxAgeSeconds, getSize, getStatistics, put, put, remove, remove, removeGroup, setCapacity, setDefaultCacheMultiDataProvider, setMaxAgeSeconds, setReplicateOnPut, toString
-
-
-
-
Method Detail
-
get
public T get(java.lang.String key, int maxAge)
Returns the value of the key if the maxAge has not expired since the last put in the cache for the current key.- Parameters:
key
- of the value to be retrieved.maxAge
- in seconds since the last put in the cache. If 0 or a lower number is passed as parameter, will consider that cache does not timeout.- Returns:
- html in cache for the given key.
- Since:
- 7.0.0
-
-