콘텐츠로 이동

SessionIndexStore

이 콘텐츠는 아직 번역되지 않았습니다.

可选的会话索引存储:为多副本共享元数据,或为不支持条件写的对象存储提供 CAS 提交点。

get(endUserKey, sessionId): Promise<ColdStoredSessionMeta | null>;

string

string

Promise<ColdStoredSessionMeta | null>


list(endUserKey, cursor?): AsyncIterable<ColdStoredSessionMeta>;

string

string

AsyncIterable<ColdStoredSessionMeta>


remove(endUserKey, sessionId): Promise<void>;

string

string

Promise<void>


upsert(meta, expectedGeneration?): Promise<void>;

expectedGeneration 不匹配须抛 precondition_failed

ColdStoredSessionMeta

number

Promise<void>