Skip to content

SessionIndexStore

This content is not available in your language yet.

可选的会话索引存储:为多副本共享元数据,或为不支持条件写的对象存储提供 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>