public class ExpirationKCVSCache extends KCVSCache
NO_DELETIONSNO_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
|
void |
forceClearExpiredCache() |
Map<SliceQuery,Map<StaticBuffer,EntryList>> |
getMultiSlices(MultiKeysQueryGroups<StaticBuffer,SliceQuery> multiKeysQueryGroups,
StoreTransaction txh)
Retrieves the list of entries (i.e.
|
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) |
getMultiSlicesNoCache, getSliceNoCache, getSliceNoCache, hasValidateKeysOnly, incActionBy, mutate, mutateEntries, unwrapTxpublic ExpirationKCVSCache(KeyColumnValueStore store, String metricsName, long cacheTimeMS, long invalidationGracePeriodMS, long maximumByteSize)
public EntryList getSlice(KeySliceQuery query, StoreTransaction txh) throws BackendException
KeyColumnValueStoregetSlice in interface KeyColumnValueStoregetSlice in class KCVSProxyquery - Query to get results fortxh - TransactionBackendException - when columnEnd < columnStartKeySliceQuerypublic Map<StaticBuffer,EntryList> getSlice(List<StaticBuffer> keys, SliceQuery query, StoreTransaction txh) throws BackendException
KeyColumnValueStoreSliceQuery for all
of the given keys together.getSlice in interface KeyColumnValueStoregetSlice in class KCVSProxykeys - List of keysquery - Slicequery specifying matching entriestxh - TransactionBackendExceptionpublic Map<SliceQuery,Map<StaticBuffer,EntryList>> getMultiSlices(MultiKeysQueryGroups<StaticBuffer,SliceQuery> multiKeysQueryGroups, StoreTransaction txh) throws BackendException
KeyColumnValueStoreSliceQuery for all respective given keys together.
SliceQuery via KeyColumnValueStore.getSlice(List, SliceQuery, StoreTransaction).
SliceQuery) in the
shortest time possible.
getMultiSlices in interface KeyColumnValueStoregetMultiSlices in class KCVSProxymultiKeysQueryGroups - List of Tuples where key is a List of SliceQuery queries which has
to be performed and a value is a list of keys for which all the queries have
to be performed.txh - TransactionSliceQuery and each of the given key.
EntryList result should be provided for each of the StaticBuffer of each of the SliceQuery.BackendExceptionpublic void clearCache()
clearCache in class KCVSCachepublic void invalidate(StaticBuffer key, List<CachableStaticBuffer> entries)
invalidate in class KCVSCachepublic void forceClearExpiredCache()
forceClearExpiredCache in class KCVSCachepublic void close()
throws BackendException
KeyColumnValueStoreclose in interface KeyColumnValueStoreclose in class KCVSProxyBackendExceptionCopyright © 2012–2024. All rights reserved.