Skip to content

InMemoryGroupSecurityRollbackAnchor

Defined in: packages/core/src/group-security-rollback-anchor.ts:132

Reference implementation for tests and same-process development only. Keeping this object beside an in-memory store is not rollback-resistant.

new InMemoryGroupSecurityRollbackAnchor(): InMemoryGroupSecurityRollbackAnchor

InMemoryGroupSecurityRollbackAnchor

advance(keyValue, expectedValue, nextValue): Promise<boolean>

Defined in: packages/core/src/group-security-rollback-anchor.ts:148

GroupStateStoreKey

GroupSecurityRollbackAnchorValue | undefined

GroupSecurityRollbackAnchorValue

Promise<boolean>

DurableGroupSecurityRollbackAnchor.advance


load(keyValue): Promise<GroupSecurityRollbackAnchorValue | undefined>

Defined in: packages/core/src/group-security-rollback-anchor.ts:138

GroupStateStoreKey

Promise<GroupSecurityRollbackAnchorValue | undefined>

DurableGroupSecurityRollbackAnchor.load


poison(keyValue, forkPoisonValue, initialValue?): Promise<GroupSecurityRollbackAnchorValue>

Defined in: packages/core/src/group-security-rollback-anchor.ts:171

Atomically and irreversibly poison whichever active value is current.

GroupStateStoreKey

GroupSecurityRollbackForkPoison

GroupSecurityRollbackAnchorValue

Promise<GroupSecurityRollbackAnchorValue>

DurableGroupSecurityRollbackAnchor.poison