public class ExpirationKCVSCache extends KCVSCache
NO_DELETIONS
NO_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) |
getSliceNoCache, getSliceNoCache, hasValidateKeysOnly, incActionBy, mutate, mutateEntries, unwrapTx
acquireLock, getKeys, getKeys, getName
public ExpirationKCVSCache(KeyColumnValueStore store, String metricsName, long cacheTimeMS, long invalidationGracePeriodMS, long maximumByteSize)
public EntryList getSlice(KeySliceQuery query, StoreTransaction txh) throws BackendException
KeyColumnValueStore
getSlice
in interface KeyColumnValueStore
getSlice
in class KCVSProxy
query
- Query to get results fortxh
- TransactionBackendException
- when columnEnd < columnStartKeySliceQuery
public Map<StaticBuffer,EntryList> getSlice(List<StaticBuffer> keys, SliceQuery query, StoreTransaction txh) throws BackendException
KeyColumnValueStore
SliceQuery
for all
of the given keys together.getSlice
in interface KeyColumnValueStore
getSlice
in class KCVSProxy
keys
- List of keysquery
- Slicequery specifying matching entriestxh
- TransactionBackendException
public void clearCache()
clearCache
in class KCVSCache
public void invalidate(StaticBuffer key, List<CachableStaticBuffer> entries)
invalidate
in class KCVSCache
public void close() throws BackendException
KeyColumnValueStore
close
in interface KeyColumnValueStore
close
in class KCVSProxy
BackendException
Copyright © 2012–2020. All rights reserved.