SessionHistoryStore
This content is not available in your language yet.
二级存储接口:自管布局(KV / 关系库)的会话历史存取。 引擎只调 store / load / listSessions / remove,分段与清单由实现方自行落位。
listSessions()
Section titled “listSessions()”listSessions( endUserKey, cursor?, signal?): AsyncIterable<ColdStoredSessionMeta>;endUserKey
Section titled “endUserKey”string
cursor?
Section titled “cursor?”string
signal?
Section titled “signal?”any
AsyncIterable<ColdStoredSessionMeta>
load()
Section titled “load()”load(query): Promise<LoadResult | null>;null = 不存在
Promise<LoadResult | null>
remove()
Section titled “remove()”remove( sessionId, endUserKey, signal?): Promise<void>;sessionId
Section titled “sessionId”string
endUserKey
Section titled “endUserKey”string
signal?
Section titled “signal?”any
Promise<void>
store()
Section titled “store()”store(input): Promise<void>;Promise<void>
Was this page helpful?
Thanks for your feedback.