public interface Cache
Modifier and Type | Interface and Description |
---|---|
static class |
Cache.NamedKey |
Modifier and Type | Method and Description |
---|---|
void |
close(String namespace) |
void |
doMonitor(com.metamx.emitter.service.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.
|
CacheStats |
getStats() |
boolean |
isLocal() |
void |
put(Cache.NamedKey key,
byte[] value) |
byte[] get(Cache.NamedKey key)
void put(Cache.NamedKey key, byte[] value)
Map<Cache.NamedKey,byte[]> getBulk(Iterable<Cache.NamedKey> keys)
keys
- void close(String namespace)
CacheStats getStats()
boolean isLocal()
void doMonitor(com.metamx.emitter.service.ServiceEmitter emitter)
emitter
- The service emitter to emit on.Copyright © 2011–2017. All rights reserved.