Package org.nuxeo.ecm.core.cache
Interface CacheManagement
- All Superinterfaces:
Cache
- All Known Implementing Classes:
AbstractCache,CacheAttributesChecker,CacheInvalidator,CacheMetrics,CacheWrapper,InMemoryCacheImpl
Management-related APIs for a
Cache.- Since:
- 9.3
-
Method Summary
Modifier and TypeMethodDescriptionlonggetSize()Returns this cache size (approximate number of entries), or-1if the number of entries is unknown or too expensive to compute.voidinvalidateLocal(String key) Invalidates the given key locally.voidInvalidates all keys locally.voidputLocal(String key, Serializable value) Stores aSerializablevalue into the cache locally.voidstart()Starts this cache.voidstop()Stops this cache and releases related resources.Methods inherited from interface org.nuxeo.ecm.core.cache.Cache
computeIfAbsent, get, getName, hasEntry, invalidate, invalidateAll, keySet, put
-
Method Details
-
start
void start()Starts this cache. -
stop
void stop()Stops this cache and releases related resources. -
getSize
long getSize()Returns this cache size (approximate number of entries), or-1if the number of entries is unknown or too expensive to compute.- Returns:
- the approximate number of entries, or
-1 - Since:
- 9.1
-
putLocal
Stores aSerializablevalue into the cache locally. Does not propagate invalidations.- Parameters:
key- the keyvalue- the value- Since:
- 9.3
-
invalidateLocal
Invalidates the given key locally. Does not propagate invalidations.- Parameters:
key- the key to remove from the cache- Since:
- 9.3
-
invalidateLocalAll
void invalidateLocalAll()Invalidates all keys locally. Does not propagate invalidations.- Since:
- 9.3
-