public final class MemcachedMappingRecordCache<A,B,C,D> extends Object implements RecordCache<C,D>
| Modifier and Type | Class and Description |
|---|---|
static class |
MemcachedMappingRecordCache.Builder<A,B,C,D> |
static class |
MemcachedMappingRecordCache.PrimerStatus |
| Constructor and Description |
|---|
MemcachedMappingRecordCache(PersistentRecordCache<A,B> baseCache,
fj.F<A,C> aToCFunction,
fj.F<C,A> cToAFunction,
fj.F<B,D> valueMapFunction,
MemcachedCache<C,D> memcachedCache) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAvailability(String key) |
void |
close() |
D |
get(C key,
CacheStats cacheStats) |
Map<C,D> |
getAll(Collection<C> keys,
CacheStats cacheStats) |
RecordLogDirectoryPoller.Functions |
getFunctions() |
String |
getLsmTreeMissCounter() |
String |
getMemcacheMissCounter() |
Map<String,String> |
getStats() |
void |
prime(Iterator<C> keys,
MemcachedMappingRecordCache.PrimerStatus status) |
void |
removeFromCache(C key) |
public D get(C key, CacheStats cacheStats)
get in interface RecordCache<C,D>public Map<C,D> getAll(Collection<C> keys, CacheStats cacheStats)
getAll in interface RecordCache<C,D>public RecordLogDirectoryPoller.Functions getFunctions()
getFunctions in interface RecordCache<C,D>public void removeFromCache(C key)
public void prime(Iterator<C> keys, @Nullable MemcachedMappingRecordCache.PrimerStatus status) throws IndexReadException
IndexReadExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean checkAvailability(String key)
public String getMemcacheMissCounter()
public String getLsmTreeMissCounter()
Copyright © 2017. All Rights Reserved.