Package org.apache.druid.client.cache
Class CaffeineCache
java.lang.Object
org.apache.druid.client.cache.CaffeineCache
- All Implemented Interfaces:
Closeable,AutoCloseable,Cache
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.druid.client.cache.Cache
Cache.NamedKey -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidstatic CaffeineCachecreate(CaffeineCacheConfig config) static CaffeineCachecreate(CaffeineCacheConfig config, Executor executor) voiddoMonitor(ServiceEmitter emitter) Custom metrics not covered by CacheStats may be emitted by this method.byte[]get(Cache.NamedKey key) Map<Cache.NamedKey,byte[]> getBulk(Iterable<Cache.NamedKey> keys) Resulting map should not contain any null values (i.e.getStats()booleanisLocal()voidput(Cache.NamedKey key, byte[] value)
-
Method Details
-
create
-
create
-
get
-
put
-
getBulk
Description copied from interface:CacheResulting map should not contain any null values (i.e. cache misses should not be included) -
close
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getStats
-
isLocal
public boolean isLocal() -
doMonitor
Description copied from interface:CacheCustom metrics not covered by CacheStats may be emitted by this method.
-