Optional ReadonlymaxLargest serialized record in UTF-8 bytes the store can hold. Absent: no store limit.
ReadonlynameShort store kind for health data, e.g. 'memory', 'redis', 'durable-object'.
Claims a key.
The claim request
The claim outcome
Settles a held claim into a completed record.
The store key
The token that holds the claim
The opaque record to store
Milliseconds the record is retained from this write
'settled' when the token still held the claim, else 'lost'
Prepares the store. Called exactly once, before any other member.
The runtime services the store may use (its clock, timers)
A promise resolved once the store is ready
OptionaldisconnectReleases the store's own resources. Called from the plugin's close hook.
A promise resolved once the store's resources are released
OptionalisReachability probe. Absent: "cannot tell".
true when the store answers, false when it does not
Releases a held claim, deleting the record.
The store key
The token that holds the claim
'settled' when the token still held the claim, else 'lost'
The store port behind every idempotency entry point.
The state machine a store implements is: a claim of an absent key is
claimed; a claim whose stored fingerprint differs isfingerprint-mismatch; a claim of a completed record iscompletedwith the record; a claim of an in-progress record inside its lease isin-progress, and after the lease lapses it isclaimedwithtakeover: true.completeandreleasesucceed only for the token that holds the claim.Since
0.9.0