kv / org.apache.tuweni.kv / KeyValueStore

KeyValueStore

interface KeyValueStore : Closeable (source)

A key-value store.

Functions

get

abstract suspend fun get(key: Bytes): Bytes?

Retrieves data from the store.

getAsync

open fun getAsync(key: Bytes): AsyncResult<Bytes?>
open fun getAsync(dispatcher: CoroutineDispatcher, key: Bytes): AsyncResult<Bytes?>

Retrieves data from the store.

put

abstract suspend fun put(key: Bytes, value: Bytes): Unit

Puts data into the store.

putAsync

open fun putAsync(key: Bytes, value: Bytes): AsyncCompletion
open fun putAsync(dispatcher: CoroutineDispatcher, key: Bytes, value: Bytes): AsyncCompletion

Puts data into the store.

Inheritors

InfinispanKeyValueStore

class InfinispanKeyValueStore : KeyValueStore

A key-value store backed by Infinispan

LevelDBKeyValueStore

class LevelDBKeyValueStore : KeyValueStore

A key-value store backed by LevelDB.

MapDBKeyValueStore

class MapDBKeyValueStore : KeyValueStore

A key-value store backed by a MapDB instance.

MapKeyValueStore

class MapKeyValueStore : KeyValueStore

A key-value store backed by an in-memory Map.

RedisKeyValueStore

class RedisKeyValueStore : KeyValueStore

A key-value store backed by Redis.

RocksDBKeyValueStore

class RocksDBKeyValueStore : KeyValueStore

A key-value store backed by RocksDB.

SQLKeyValueStore

class SQLKeyValueStore : KeyValueStore

A key-value store backed by a relational database.