set

abstract suspend fun <T : Any> set(key: StateKey<T>, value: T)

Sets the given value under the given key, serializing the value using the StateKey.serde.

Parameters

key

identifying the value to store and its type.

value

to store under the given key.