public class NoCache extends Cache
| Constructor and Description |
|---|
NoCache() |
| 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, putprotected CacheElementWrapper<Serializable> handleGet(String cacheKey) throws CacheException
CachehandleGet in class CachecacheKey - the key used for storing the element in the cacheCacheException - when there are problems with the backendprotected void handleInvalidate(String cacheKey) throws CacheException
CachehandleInvalidate in class CachecacheKey - the key used for cachingCacheException - when the invalidation failedprotected void handlePut(String cacheKey, CacheElementWrapper<Serializable> cacheElement, int timeToLive) throws CacheException
CachehandlePut in class CachecacheKey - the key used for caching and retrievingcacheElement - the element to be cached; never nulltimeToLive - the time in seconds until the item will expire. A negative value indicates eternal
caching.CacheException - when caching failedCopyright © 2019 Communote team. All rights reserved.