Interface SessionStore<S>
interface SessionStore<S = any> { get(sessionId: string): Promise<undefined | SessionData<S>>; save(sessionId: string, data: Omit<SessionData<S>, "id">): Promise<void>;} Methods
get
- get(sessionId: string): Promise<undefined | SessionData<S>>
Returns Promise<undefined | SessionData<S>>
save
- save(sessionId: string, data: Omit<SessionData<S>, "id">): Promise<void>
Returns Promise<void>
Session store persists session data such as state and chat messages.