Skip to main content

MemoryStore<ConversationState>

Defined in: src/conversation-store.ts:21

Default implementation of ConversationStore, which stores data in memory.

This should not be used in situations where there is more than once instance of the app running because state will not be shared amongst the processes.

Type Parameters

ConversationState

ConversationState = any

Implements

Constructors

Constructor

new MemoryStore<ConversationState>(): MemoryStore<ConversationState>;

Returns

MemoryStore<ConversationState>

Methods

get()

get(conversationId): Promise<ConversationState>;

Defined in: src/conversation-store.ts:31

Parameters

conversationId

string

Returns

Promise<ConversationState>

Implementation of

ConversationStore.get


set()

set(
conversationId,
value,
expiresAt?
): Promise<void>;

Defined in: src/conversation-store.ts:24

Parameters

conversationId

string

value

ConversationState

expiresAt?

number

Returns

Promise<void>

Implementation of

ConversationStore.set