public abstract class AbstractKeyValueStore<T> extends Object implements KeyValueStore<T>
KeyValueStore
that defaults calls without ttl specified.Constructor and Description |
---|
AbstractKeyValueStore() |
Modifier and Type | Method and Description |
---|---|
long |
put(String key,
T value,
String context) |
CompletableFuture<Long> |
putAsync(String key,
T value,
String context) |
void |
truncateContext(String context)
A default truncate implementation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, deleteAsync, enumerateContext, enumerateContextAsync, get, getAsync, getIfStale, getIfStaleAsync, getLastUpdated, getLastUpdatedAsync, getName, put, putAsync, truncateContextAsync
public final long put(String key, T value, String context)
put
in interface KeyValueStore<T>
context
- a context used to differentiate between keys with the same name (forms a compound key)public final CompletableFuture<Long> putAsync(String key, T value, String context)
putAsync
in interface KeyValueStore<T>
context
- a context used to differentiate between keys with the same name (forms a compound key)public void truncateContext(String context)
truncateContext
in interface KeyValueStore<T>
context
- a context used to differentiate between keys with the same name (forms a compound key)Copyright © 2020. All rights reserved.