public class CacheInvalidator extends CacheWrapper
| Modifier and Type | Field and Description |
|---|---|
protected CacheServiceImpl.CachePubSubInvalidator |
invalidator |
cache| Constructor and Description |
|---|
CacheInvalidator(CacheManagement cache,
CacheServiceImpl.CachePubSubInvalidator invalidator) |
| Modifier and Type | Method and Description |
|---|---|
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 |
get, getName, getSize, hasEntry, invalidateLocal, invalidateLocalAll, keySet, putLocal, start, stop, toStringprotected final CacheServiceImpl.CachePubSubInvalidator invalidator
public CacheInvalidator(CacheManagement cache, CacheServiceImpl.CachePubSubInvalidator invalidator)
public 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 void invalidate(String key)
Cacheinvalidate in interface Cacheinvalidate in class CacheWrapperpublic void invalidateAll()
CacheinvalidateAll in interface CacheinvalidateAll in class CacheWrapperCopyright © 2019 Nuxeo. All rights reserved.