SessionIndexStore
이 콘텐츠는 아직 번역되지 않았습니다.
可选的会话索引存储:为多副本共享元数据,或为不支持条件写的对象存储提供 CAS 提交点。
get(endUserKey, sessionId): Promise<ColdStoredSessionMeta | null>;endUserKey
Section titled “endUserKey”string
sessionId
Section titled “sessionId”string
Promise<ColdStoredSessionMeta | null>
list()
Section titled “list()”list(endUserKey, cursor?): AsyncIterable<ColdStoredSessionMeta>;endUserKey
Section titled “endUserKey”string
cursor?
Section titled “cursor?”string
AsyncIterable<ColdStoredSessionMeta>
remove()
Section titled “remove()”remove(endUserKey, sessionId): Promise<void>;endUserKey
Section titled “endUserKey”string
sessionId
Section titled “sessionId”string
Promise<void>
upsert()
Section titled “upsert()”upsert( meta, expectedGeneration?, expectedIdentity?): Promise<void>;expectedGeneration 不匹配须抛 precondition_failed。支持跨卷严格 CAS 的实现还须在同一提交点 核对 expectedIdentity;数字代际可随换卷重置,不能单独防止跨卷 ABA。 第三参为加法扩展,旧实现仍可忽略,其跨卷保证不因此自动增强。
expectedGeneration?
Section titled “expectedGeneration?”number
expectedIdentity?
Section titled “expectedIdentity?”manifestKey?
Section titled “manifestKey?”string
volumeId
Section titled “volumeId”string
Promise<void>
이 페이지가 도움이 되었나요?
피드백 감사합니다. 이 문서를 계속 개선하겠습니다.