Coffrify. Runtime. Idempotency behaviour
(Coffrify v0.9.0)
View Source
Behaviour for Idempotency-Key persistence — survives crashes between
retry attempts.
Bundled adapters:
Coffrify.Runtime.Idempotency.Memory—Agent-backed; process-local.Coffrify.Runtime.Idempotency.Redis— uses an injected Redix-like client.
Summary
Functions
Deterministic key for the same logical request — beats random UUIDs for crash recovery.
Dispatch helper used by Coffrify.Client. Accepts either a {module, state}
tuple or a tagged struct whose first element is the module.
Callbacks
Functions
Deterministic key for the same logical request — beats random UUIDs for crash recovery.
Dispatch helper used by Coffrify.Client. Accepts either a {module, state}
tuple or a tagged struct whose first element is the module.
@spec put(any(), String.t(), term(), pos_integer()) :: :ok