Anchorage API reference
    Preparing search index...

    Dev/test store. Per-isolate and evictable — production replay protection needs a durable store (D1IdempotencyStore).

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • 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).

      Parameters

      Returns void

    • Drop 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.

      Parameters

      • key: string
      • Optionaltoken: string

      Returns void