Class: MemorySequencerStorage
Class: MemorySequencerStorage
Section titled “Class: MemorySequencerStorage”Defined in: server/src/sequencer-do.ts:108
Minimal in-memory SequencerStorage implementation used by tests.
Sufficient for the SequencerDO unit suite; a full DO deployment
gets the storage from Cloudflare’s runtime.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MemorySequencerStorage():
MemorySequencerStorage
Returns
Section titled “Returns”MemorySequencerStorage
Methods
Section titled “Methods”get<
T>(key):Promise<T|undefined>
Defined in: server/src/sequencer-do.ts:110
Type Parameters
Section titled “Type Parameters”T = unknown
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<T | undefined>
Implementation of
Section titled “Implementation of”put<
T>(key,value):Promise<void>
Defined in: server/src/sequencer-do.ts:113
Type Parameters
Section titled “Type Parameters”T = unknown
Parameters
Section titled “Parameters”string
T
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”transaction()
Section titled “transaction()”transaction<
T>(closure):Promise<T>
Defined in: server/src/sequencer-do.ts:116
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”closure
Section titled “closure”(tx) => Promise<T>
Returns
Section titled “Returns”Promise<T>