public class CacheAttributesChecker extends CacheWrapper
cache| Constructor and Description | 
|---|
CacheAttributesChecker(CacheManagement cache)  | 
| 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 
 | 
long | 
getSize()
Returns this cache size (approximate number of entries), or  
-1 if the number of entries is unknown or too
 expensive to compute. | 
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 | 
getName, invalidateLocal, invalidateLocalAll, putLocal, start, stop, toStringpublic CacheAttributesChecker(CacheManagement cache)
public Serializable get(String key)
Cacheget in interface Cacheget in class CacheWrapperkey - the string keySerializable value, return null if the key does not exist or if the key is nullpublic Set<String> keySet()
CachekeySet in interface CachekeySet in class CacheWrapperSet of all keyspublic void invalidate(String key)
Cacheinvalidate in interface Cacheinvalidate in class CacheWrapperpublic void invalidateAll()
CacheinvalidateAll in interface CacheinvalidateAll in class CacheWrapperpublic void put(String key, Serializable value)
CacheSerializable valueput in interface Cacheput in class CacheWrapperkey - 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 CacheWrapperkey - the string keypublic long getSize()
CacheManagement-1 if the number of entries is unknown or too
 expensive to compute.getSize in interface CacheManagementgetSize in class CacheWrapper-1Copyright © 2019 Nuxeo. All rights reserved.