Package org.nuxeo.ecm.core.cache
Class CacheInvalidator
- java.lang.Object
-
- org.nuxeo.ecm.core.cache.CacheWrapper
-
- org.nuxeo.ecm.core.cache.CacheInvalidator
-
- All Implemented Interfaces:
Cache,CacheManagement
public class CacheInvalidator extends CacheWrapper
Wrapper managing cache invalidations.- Since:
- 9.3
-
-
Field Summary
Fields Modifier and Type Field Description protected CacheServiceImpl.CachePubSubInvalidatorinvalidator-
Fields inherited from class org.nuxeo.ecm.core.cache.CacheWrapper
cache
-
-
Constructor Summary
Constructors Constructor Description CacheInvalidator(CacheManagement cache, CacheServiceImpl.CachePubSubInvalidator invalidator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinvalidate(String key)Invalidate the given keyvoidinvalidateAll()Invalidate all key-value stored in the cachevoidput(String key, Serializable value)Put method to store aSerializablevalue-
Methods inherited from class org.nuxeo.ecm.core.cache.CacheWrapper
get, getName, getSize, hasEntry, invalidateLocal, invalidateLocalAll, keySet, putLocal, start, stop, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.core.cache.Cache
computeIfAbsent
-
-
-
-
Field Detail
-
invalidator
protected final CacheServiceImpl.CachePubSubInvalidator invalidator
-
-
Constructor Detail
-
CacheInvalidator
public CacheInvalidator(CacheManagement cache, CacheServiceImpl.CachePubSubInvalidator invalidator)
-
-
Method Detail
-
put
public void put(String key, Serializable value)
Description copied from interface:CachePut method to store aSerializablevalue- Specified by:
putin interfaceCache- Overrides:
putin classCacheWrapper- Parameters:
key- the string key, if null, the value will not be storedvalue- the value to store, if null, the value will not be stored
-
invalidate
public void invalidate(String key)
Description copied from interface:CacheInvalidate the given key- Specified by:
invalidatein interfaceCache- Overrides:
invalidatein classCacheWrapper- Parameters:
key- , the key to remove from the cache, if null will do nothing
-
invalidateAll
public void invalidateAll()
Description copied from interface:CacheInvalidate all key-value stored in the cache- Specified by:
invalidateAllin interfaceCache- Overrides:
invalidateAllin classCacheWrapper
-
-