public class CacheAttributesChecker extends AbstractCache
| Modifier and Type | Field and Description |
|---|---|
protected Cache |
cache |
name, ttl| Modifier | Constructor and Description |
|---|---|
protected |
CacheAttributesChecker(CacheDescriptor desc) |
| Modifier and Type | Method and Description |
|---|---|
Serializable |
get(String key)
Get method to retrieve value from cache Must not raise exception if the key is null, but return null
|
Cache |
getCache() |
boolean |
hasEntry(String key)
Check if a given key is present inside the cache.
|
void |
invalidate(String key)
Invalidate the given key
|
void |
invalidateAll()
Invalidate all key-value stored in the cache
|
Set<String> |
keySet()
Returns the set of all keys stored in the cache.
|
void |
put(String key,
Serializable value)
Put method to store a
Serializable value |
getNameprotected CacheAttributesChecker(CacheDescriptor desc)
public Serializable get(String key)
Cachekey - the string keySerializable value, return null if the key does not exist or if the key is nullpublic Set<String> keySet()
CacheSet of all keyspublic void invalidate(String key)
Cachepublic void invalidateAll()
Cachepublic void put(String key, Serializable value)
CacheSerializable valuekey - the string key, if null, the value will not be storedvalue - the value to store, if null, the value will not be storedpublic boolean hasEntry(String key)
CachehasEntry in interface CachehasEntry in class AbstractCachekey - the string keyCopyright © 2016 Nuxeo SA. All rights reserved.