Backend-agnostic idempotency flow helpers.
Summary
Functions
Convenience helper that hashes payload and then delegates to claim_request/5.
Delegate an exact-retry pre-check to the configured store.
Functions
@spec claim_for_payload(module(), integer(), String.t(), String.t(), term()) :: IdempotencyKit.Store.claim_result()
Convenience helper that hashes payload and then delegates to claim_request/5.
Useful for callers that prefer a single-step API.
@spec purge_stale_requests(module()) :: {non_neg_integer(), nil | [term()]}
Delegate an exact-retry pre-check to the configured store.
Returns true when the store already has a record for the same
(user_id, scope, idempotency_key) and equivalent payload hash.