|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.cache.service.AbstractSimpleCacheService
org.silverpeas.cache.service.AbstractCacheService
org.silverpeas.cache.service.EhCacheService
public final class EhCacheService
Implementation of the CacheService that uses EhCache API. User: Yohann Chastagnier Date: 11/09/13
Method Summary | ||
---|---|---|
void |
clear()
Clear the content of the cache. |
|
Object |
get(Object key)
Gets an element from the cache. |
|
void |
put(Object key,
Object value,
int timeToLive,
int timeToIdle)
Puts a value for a given key. |
|
Object |
remove(Object key)
Removes an element from the cache and return it. |
|
|
remove(Object key,
Class<T> classType)
Removes a typed element from the cache and return it. |
Methods inherited from class org.silverpeas.cache.service.AbstractCacheService |
---|
add, add, put, put |
Methods inherited from class org.silverpeas.cache.service.AbstractSimpleCacheService |
---|
add, get |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.silverpeas.cache.service.SimpleCacheService |
---|
add, get |
Method Detail |
---|
public void clear()
SimpleCacheService
public Object get(Object key)
SimpleCacheService
public Object remove(Object key)
SimpleCacheService
public <T> T remove(Object key, Class<T> classType)
SimpleCacheService
public void put(Object key, Object value, int timeToLive, int timeToIdle)
CacheService
timeToIdle
- 0 = unlimited
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |