Class SpoolVersions
Hierarchy
- DurableObject
- SpoolVersions
Constructors
constructor
-
Parameters
- ctx: DurableObjectState
- env: Env
Returns SpoolVersions
Methods
Optionalalarm
-
Parameters
OptionalalarmInfo: AlarmInvocationInfo
Returns void | Promise<void>
bump
-
records a change to
tagsand returns the new cursorParameters
- tags: string[]
Returns number
Optionalconnect
-
Parameters
- socket: Socket
Returns void | Promise<void>
cursor
-
the cursor of the most recent bump
Returns number
diff
Optionalfetch
-
Parameters
- request: Request
Returns Response | Promise<Response>
Optionalweb Socket Close
Optionalweb Socket Error
-
Parameters
- ws: WebSocket
- error: unknown
Returns void | Promise<void>
Optionalweb Socket Message
-
Parameters
- ws: WebSocket
- message: string | ArrayBuffer
Returns void | Promise<void>
The version vector in a SQLite-backed Durable Object: one row per tag and one cursor row, so it survives eviction and restarts. Bind it as a Durable Object class and pass the namespace to durableObjectStore.