Class EhCache
- java.lang.Object
-
- org.silverpeas.kernel.cache.model.AbstractSimpleCache
-
- org.silverpeas.kernel.cache.model.ExternalCache
-
- org.silverpeas.core.cache.service.EhCache
-
- All Implemented Interfaces:
org.silverpeas.kernel.cache.model.Cache
,org.silverpeas.kernel.cache.model.SimpleCache
public final class EhCache extends org.silverpeas.kernel.cache.model.ExternalCache
Implementation of the external cache by using the EhCache API. This cache is loaded and used by theApplicationCacheAccessor
through the Java SPI mechanism.- Author:
- Yohann Chastagnier
- See Also:
ExternalCache
,ApplicationCacheAccessor
-
-
Constructor Summary
Constructors Constructor Description EhCache()
Constructs the EhCache cache.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
<T> T
computeIfAbsent(Object key, Class<T> classType, int timeToLive, int timeToIdle, Supplier<T> valueSupplier)
Object
get(Object key)
Map<Object,Object>
getAll()
void
put(Object key, Object value, int timeToLive, int timeToIdle)
Object
remove(Object key)
<T> T
remove(Object key, Class<T> classType)
-
Methods inherited from class org.silverpeas.kernel.cache.model.ExternalCache
add, add, computeIfAbsent, computeIfAbsent, put, put
-
-