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.CachePubSubInvalidator
invalidator
-
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 void
invalidate(String key)
Invalidate the given keyvoid
invalidateAll()
Invalidate all key-value stored in the cachevoid
put(String key, Serializable value)
Put method to store aSerializable
value-
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: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
public void invalidate(String key)
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
-
-