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, toString
protected final CacheServiceImpl.CachePubSubInvalidator invalidator
public CacheInvalidator(CacheManagement cache, CacheServiceImpl.CachePubSubInvalidator invalidator)
public void put(String key, Serializable value)
Cache
Serializable
valueput
in interface Cache
put
in class CacheWrapper
key
- 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)
Cache
invalidate
in interface Cache
invalidate
in class CacheWrapper
public void invalidateAll()
Cache
invalidateAll
in interface Cache
invalidateAll
in class CacheWrapper
Copyright © 2019 Nuxeo. All rights reserved.