tuweni / org.apache.tuweni.kv / InfinispanKeyValueStore

InfinispanKeyValueStore

class InfinispanKeyValueStore : KeyValueStore (source)

A key-value store backed by Infinispan

Constructors

<init>

InfinispanKeyValueStore(cache: <ERROR CLASS><Bytes, Bytes>)

A key-value store backed by Infinispan

Functions

close

fun close(): Unit

The cache is managed outside the scope of this key-value store.

get

suspend fun get(key: Bytes): Bytes?

Retrieves data from the store.

put

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

Puts data into the store.

Inherited Functions

getAsync

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

Retrieves data from 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.

Companion Object Functions

open

fun open(cache: <ERROR CLASS><Bytes, Bytes>): InfinispanKeyValueStore

Open an Infinispan key-value store.