Remove all completed records and pending reservations.
Return a completed in-memory record, or undefined on a miss.
Finalize a key's record. token is the lease returned by an atomic
reserve(): when supplied, the store finalizes ONLY if the key still
belongs to that lease. A stale holder whose lease was taken over cannot
overwrite the new result. Omit the token on the legacy get/put path,
which upserts
unconditionally (same-isolate protection only).
Optionaltoken: stringDrop a pending reservation after a failed execute — failures stay
retryable. token is the lease from reserve(): when supplied, only the
matching lease's pending row is dropped, so a stale holder cannot delete
a newer claim.
Optionaltoken: stringAtomically reserve a key within this JavaScript isolate.
Dev/test store. Per-isolate and evictable — production replay protection needs a durable store (D1IdempotencyStore).