public interface KeyValueClient extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Awaitable |
deleteValue(String key)
Deletes the value associated with the given key.
|
Data<byte[]> |
getValue(String key)
Returns the
Data object associated with the given key. |
Awaitable |
putValue(String key,
Data<byte[]> value)
Adds or replaces the given value in the key value store.
|
Awaitable putValue(String key, Data<byte[]> value)
key - The key associated with this valuevalue - The value to storeData<byte[]> getValue(String key)
Data object associated with the given key. Returns null if there is no
associated value.key - The key associated with the valueAwaitable deleteValue(String key)
key - The key associated with this valuevoid close()
close in interface AutoCloseableCopyright © 2019 Flux Capacitor. All rights reserved.