kv / org.apache.tuweni.kv / KeyValueStore / putAsync

putAsync

open fun putAsync(key: Bytes, value: Bytes): AsyncCompletion (source)

Puts data into the store.

Note: if the storage implementation already contains content for the given key, it does not need to replace the existing content.

Parameters

key - The key to associate with the data, for use when retrieving.

value - The data to store.

Return
An AsyncCompletion that will complete when the content is stored.

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

Puts data into the store.

Note: if the storage implementation already contains content for the given key, it does not need to replace the existing content.

Parameters

key - The key to associate with the data, for use when retrieving.

value - The data to store.

dispatcher - The co-routine dispatcher for asynchronous tasks.

Return
An AsyncCompletion that will complete when the content is stored.