Interface: SequencerStorage
Interface: SequencerStorage
Section titled “Interface: SequencerStorage”Defined in: server/src/sequencer-do.ts:27
Structural type for the DurableObject storage subset SequencerDO
actually touches. Kept minimal so the class compiles against both
@cloudflare/workers-types (production) and a hand-rolled test
shim without pulling the whole worker-types surface into
@sh1n4ps/plasma-server.
Methods
Section titled “Methods”get<
T>(key):Promise<T|undefined>
Defined in: server/src/sequencer-do.ts:28
Type Parameters
Section titled “Type Parameters”T = unknown
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<T | undefined>
put<
T>(key,value):Promise<void>
Defined in: server/src/sequencer-do.ts:29
Type Parameters
Section titled “Type Parameters”T = unknown
Parameters
Section titled “Parameters”string
T
Returns
Section titled “Returns”Promise<void>
transaction()
Section titled “transaction()”transaction<
T>(closure):Promise<T>
Defined in: server/src/sequencer-do.ts:30
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”closure
Section titled “closure”(tx) => Promise<T>
Returns
Section titled “Returns”Promise<T>