ConversationKeyStorage
ref / conversations / ConversationKeyStorage
Properties
type
ts
type: "key";
The type of storage, always "key"
version
ts
version?: string | number;
An optional version for the data, defaults to 0
prefix
ts
prefix?: string;
An optional prefix to prepend to the storage key
adapter
ts
adapter: VersionedStateStorage<string, S>;
The underlying storage that defines how to read and write raw data
Methods
getStorageKey
ts
getStorageKey(ctx: C): string | undefined;
An optional storage key function, defaults to ctx