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.
key
- The key to associate with the data, for use when retrieving.
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.
key
- The key to associate with the data, for use when retrieving.
dispatcher
- The co-routine dispatcher for asynchronous tasks.
Return
An AsyncCompletion that will complete when the content is stored.