public class EhCache extends Cache
| Constructor and Description |
|---|
EhCache(net.sf.ehcache.Ehcache cacheBackend)
Creates the EhCache instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected CacheElementWrapper<Serializable> |
handleGet(String cacheKey)
Retrieves an element identified by the provided key from the cache.
|
protected void |
handleInvalidate(String cacheKey)
Invalidates the data stored under the supplied key.
|
protected void |
handlePut(String cacheKey,
CacheElementWrapper<Serializable> cacheElement,
int timeToLive)
Stores an element under the key cacheKey in the cache.
|
get, get, invalidate, invalidateAll, invalidateAllOfCurrentClient, putpublic EhCache(net.sf.ehcache.Ehcache cacheBackend)
cacheBackend - an initialized Ehcache which will be used as backend for caching dataprotected CacheElementWrapper<Serializable> handleGet(String cacheKey)
protected void handleInvalidate(String cacheKey)
handleInvalidate in class CachecacheKey - the key used for cachingprotected void handlePut(String cacheKey, CacheElementWrapper<Serializable> cacheElement, int timeToLive)
Copyright © 2019 Communote team. All rights reserved.