Clear/delete state in the Restate runtime.
key of the state to delete
Get/retrieve state from the Restate runtime.
Note that state objects are serialized with Buffer.from(JSON.stringify(theObject))
and deserialized with JSON.parse(value.toString()) as T
.
key of the state to retrieve
Optional
serde: Serde<TState extends UntypedState ? TValue : TState[TKey]>a Promise that is resolved with the value of the state key
Set/store state in the Restate runtime.
Note that state objects are serialized with Buffer.from(JSON.stringify(theObject))
and deserialized with JSON.parse(value.toString()) as T
.
key of the state to set
value to set
Optional
serde: Serde<TState extends UntypedState ? TValue : TState[TKey]>
Key value store operations. Only keyed services have an attached key-value store.