Cache.NamedKey
Modifier and Type | Method and Description |
---|---|
void |
close(String namespace) |
static Cache |
create(long sizeInBytes) |
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) |
public static Cache create(long sizeInBytes)
public CacheStats getStats()
public byte[] get(Cache.NamedKey key)
public void put(Cache.NamedKey key, byte[] value)
public Map<Cache.NamedKey,byte[]> getBulk(Iterable<Cache.NamedKey> keys)
Cache
Copyright © 2011–2017. All rights reserved.