Package org.apache.druid.client.cache
Interface Cache
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
CaffeineCache,HybridCache,MapCache,MemcachedCache
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddoMonitor(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
-
get
-
put
-
getBulk
Resulting map should not contain any null values (i.e. cache misses should not be included)- Parameters:
keys-- Returns:
-
close
-
getStats
CacheStats getStats() -
isLocal
boolean isLocal() -
doMonitor
Custom metrics not covered by CacheStats may be emitted by this method.- Parameters:
emitter- The service emitter to emit on.
-