Package io.trino.plugin.base.cache
-
Interface Summary Interface Description NonEvictableCache<K,V> ACachethat does not support eviction.NonEvictableLoadingCache<K,V> ALoadingCachethat does not support eviction.NonKeyEvictableCache<K,V> ACachethat does not support key-based eviction.NonKeyEvictableLoadingCache<K,V> ALoadingCachethat does not support key-based eviction. -
Class Summary Class Description EvictableCache<K,V> ACacheimplementation similar to ones produced byCacheBuilder.build(), but one that does not exhibit Guava issue #1881: a cache inspection withEvictableCache.getIfPresent(Object)orEvictableCache.get(Object, Callable)is guaranteed to return fresh state afterEvictableCache.invalidate(Object),EvictableCache.invalidateAll(Iterable)orEvictableCache.invalidateAll()were called.EvictableLoadingCache<K,V> ALoadingCacheimplementation similar to ones produced byCacheBuilder.build(CacheLoader), but one that does not exhibit Guava issue #1881: a cache inspection withEvictableLoadingCache.getIfPresent(Object)orEvictableLoadingCache.get(Object)is guaranteed to return fresh state afterEvictableLoadingCache.invalidate(Object),EvictableLoadingCache.invalidateAll(Iterable)orEvictableLoadingCache.invalidateAll()were called.SafeCaches