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.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new InMemoryGroupSecurityRollbackAnchor():
InMemoryGroupSecurityRollbackAnchor
Returns
Section titled “Returns”InMemoryGroupSecurityRollbackAnchor
Methods
Section titled “Methods”advance()
Section titled “advance()”advance(
keyValue,expectedValue,nextValue):Promise<boolean>
Defined in: packages/core/src/group-security-rollback-anchor.ts:148
Parameters
Section titled “Parameters”keyValue
Section titled “keyValue”expectedValue
Section titled “expectedValue”GroupSecurityRollbackAnchorValue | undefined
nextValue
Section titled “nextValue”GroupSecurityRollbackAnchorValue
Returns
Section titled “Returns”Promise<boolean>
Implementation of
Section titled “Implementation of”DurableGroupSecurityRollbackAnchor.advance
load()
Section titled “load()”load(
keyValue):Promise<GroupSecurityRollbackAnchorValue|undefined>
Defined in: packages/core/src/group-security-rollback-anchor.ts:138
Parameters
Section titled “Parameters”keyValue
Section titled “keyValue”Returns
Section titled “Returns”Promise<GroupSecurityRollbackAnchorValue | undefined>
Implementation of
Section titled “Implementation of”DurableGroupSecurityRollbackAnchor.load
poison()
Section titled “poison()”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.
Parameters
Section titled “Parameters”keyValue
Section titled “keyValue”forkPoisonValue
Section titled “forkPoisonValue”GroupSecurityRollbackForkPoison
initialValue?
Section titled “initialValue?”GroupSecurityRollbackAnchorValue
Returns
Section titled “Returns”Promise<GroupSecurityRollbackAnchorValue>