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
Wrapper managing cache invalidations.
- Since:
- 9.3
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.core.cache.CacheWrapper
cache -
Constructor Summary
ConstructorsConstructorDescriptionCacheInvalidator(CacheManagement cache, CacheServiceImpl.CachePubSubInvalidator invalidator) -
Method Summary
Modifier and TypeMethodDescriptionvoidinvalidate(String key) Invalidate the given keyvoidInvalidate all key-value stored in the cachevoidput(String key, Serializable value) Put method to store aSerializablevalueMethods inherited from class org.nuxeo.ecm.core.cache.CacheWrapper
get, getName, getSize, hasEntry, invalidateLocal, invalidateLocalAll, keySet, putLocal, start, stop, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.core.cache.Cache
computeIfAbsent
-
Field Details
-
invalidator
-
-
Constructor Details
-
CacheInvalidator
-
-
Method Details
-
put
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
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
-