org.silverpeas.cache.service
Class AbstractSimpleCacheService
java.lang.Object
org.silverpeas.cache.service.AbstractSimpleCacheService
- All Implemented Interfaces:
- SimpleCacheService
- Direct Known Subclasses:
- AbstractCacheService, InMemoryCacheService, ThreadCacheService
public abstract class AbstractSimpleCacheService
- extends Object
- implements SimpleCacheService
User: Yohann Chastagnier
Date: 25/10/13
Method Summary |
String |
add(Object value)
Adds a value and generate a unique key to retrieve later the value. |
|
get(Object key,
Class<T> classType)
Gets a typed element from the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSimpleCacheService
public AbstractSimpleCacheService()
get
public <T> T get(Object key,
Class<T> classType)
- Description copied from interface:
SimpleCacheService
- Gets a typed element from the cache.
Null is returned if an element exists for the given key but the object type doesn't
correspond.
- Specified by:
get
in interface SimpleCacheService
- Returns:
add
public String add(Object value)
- Description copied from interface:
SimpleCacheService
- Adds a value and generate a unique key to retrieve later the value.
After 12 hours without be used the value is trashed.
- Specified by:
add
in interface SimpleCacheService
- Returns:
Copyright © 2016 Silverpeas. All Rights Reserved.