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, put
protected CacheElementWrapper<Serializable> handleGet(String cacheKey) throws CacheException
Cache
handleGet
in class Cache
cacheKey
- the key used for storing the element in the cacheCacheException
- when there are problems with the backendprotected void handleInvalidate(String cacheKey) throws CacheException
Cache
handleInvalidate
in class Cache
cacheKey
- the key used for cachingCacheException
- when the invalidation failedprotected void handlePut(String cacheKey, CacheElementWrapper<Serializable> cacheElement, int timeToLive) throws CacheException
Cache
handlePut
in class Cache
cacheKey
- 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.