public class CacheAttributesChecker extends AbstractCache
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
|
void |
put(String key,
Serializable value)
Put method to store a
Serializable value |
getName
public Cache getCache()
public Serializable get(String key) throws IOException
Cache
key
- the string keySerializable
value, return null if the key does not exist or if the key is nullIOException
public void invalidate(String key) throws IOException
Cache
IOException
public void invalidateAll() throws IOException
Cache
IOException
public void put(String key, Serializable value) throws IOException
Cache
Serializable
valuekey
- the string key, if null, the value will not be storedvalue
- the value to store, if null, the value will not be storedIOException
public boolean hasEntry(String key) throws IOException
Cache
hasEntry
in interface Cache
hasEntry
in class AbstractCache
key
- the string keyIOException
Copyright © 2015 Nuxeo SA. All rights reserved.