public class ExpirationKCVSCache extends KCVSCache
NO_DELETIONS, storeNO_ADDITIONS| Constructor and Description |
|---|
ExpirationKCVSCache(KeyColumnValueStore store,
String metricsName,
long cacheTimeMS,
long invalidationGracePeriodMS,
long maximumByteSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache() |
void |
close()
Closes this store
|
EntryList |
getSlice(KeySliceQuery query,
StoreTransaction txh)
Retrieves the list of entries (i.e.
|
Map<StaticBuffer,EntryList> |
getSlice(List<StaticBuffer> keys,
SliceQuery query,
StoreTransaction txh)
Retrieves the list of entries (i.e.
|
void |
invalidate(StaticBuffer key,
List<CachableStaticBuffer> entries) |
acquireLock, getKeys, getKeys, getName, getTx, hasValidateKeysOnly, incActionBy, mutate, mutateEntriespublic ExpirationKCVSCache(KeyColumnValueStore store, String metricsName, long cacheTimeMS, long invalidationGracePeriodMS, long maximumByteSize)
public EntryList getSlice(KeySliceQuery query, StoreTransaction txh) throws StorageException
KeyColumnValueStorequery - Query to get results fortxh - TransactionStorageException - when columnEnd < columnStartKeySliceQuerypublic Map<StaticBuffer,EntryList> getSlice(List<StaticBuffer> keys, SliceQuery query, StoreTransaction txh) throws StorageException
KeyColumnValueStoreSliceQuery for all
of the given keys together.keys - List of keysquery - Slicequery specifying matching entriestxh - TransactionStorageExceptionpublic void clearCache()
clearCache in class KCVSCachepublic void invalidate(StaticBuffer key, List<CachableStaticBuffer> entries)
invalidate in class KCVSCachepublic void close()
throws StorageException
KeyColumnValueStoreclose in interface KeyColumnValueStoreclose in class KCVSCacheStorageExceptionCopyright © 2012–2014. All rights reserved.