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
Fields inherited from class org.nuxeo.ecm.core.cache.CacheWrapper
cache
-
Constructor Summary
ConstructorDescriptionCacheInvalidator
(CacheManagement cache, CacheServiceImpl.CachePubSubInvalidator invalidator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
invalidate
(String key) Invalidate the given keyvoid
Invalidate all key-value stored in the cachevoid
put
(String key, Serializable value) Put method to store aSerializable
valueMethods 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 Details
-
invalidator
-
-
Constructor Details
-
CacheInvalidator
-
-
Method Details
-
put
Description copied from interface:Cache
Put method to store aSerializable
value- Specified by:
put
in interfaceCache
- Overrides:
put
in 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:Cache
Invalidate the given key- Specified by:
invalidate
in interfaceCache
- Overrides:
invalidate
in classCacheWrapper
- Parameters:
key
- , the key to remove from the cache, if null will do nothing
-
invalidateAll
public void invalidateAll()Description copied from interface:Cache
Invalidate all key-value stored in the cache- Specified by:
invalidateAll
in interfaceCache
- Overrides:
invalidateAll
in classCacheWrapper
-