Package io.trino.cache
Interface NonKeyEvictableCache<K,V>
- All Superinterfaces:
com.google.common.cache.Cache<K,V>
public interface NonKeyEvictableCache<K,V>
extends com.google.common.cache.Cache<K,V>
A
Cache that does not support key-based eviction.-
Method Summary
Modifier and TypeMethodDescriptionvoidinvalidate(Object key) Deprecated.Not supported.voidInvalidates all live entries in the cache.voidinvalidateAll(Iterable<?> keys) Deprecated.Not supported.Methods inherited from interface com.google.common.cache.Cache
asMap, cleanUp, get, getAllPresent, getIfPresent, put, putAll, size, stats
-
Method Details
-
invalidate
Deprecated.Not supported. UseEvictableCachecache implementation instead. -
invalidateAll
Deprecated.Not supported. UseEvictableCachecache implementation instead. -
invalidateAll
void invalidateAll()Invalidates all live entries in the cache. Ongoing loads may not be invalidated, so subsequent get from the cache is not guaranteed to return fresh state. Must not be relied on for correctness, but can be used for manual intervention, e.g. as a method exposed over JMX.
-