VersionedStateStorage
ref / conversations / VersionedStateStorage
An object that defines how to read, write, and delete versioned data based on a key.
Methods
read
ts
read(key: K): MaybePromise<VersionedState<S> | undefined>;
Reads the data for a given key.
write
ts
write(key: K, state: VersionedState<S>): MaybePromise<void>;
Writes some data to the storage for a given key.
delete
ts
delete(key: K): MaybePromise<void>;
Deletes some data from the storage for a given key.