evoq_idempotency (evoq v1.14.1)
View SourceETS-based command idempotency store.
Stores command results by command_id for deduplication. Duplicate commands return the cached result instead of re-executing against the aggregate.
Uses ETS with automatic TTL-based expiration.
Summary
Functions
Check for existing result or execute and store. This is the main entry point for idempotent command execution.
Delete a command result.
Lookup a command result.
Start the idempotency store.
Store a command result.
Functions
-spec check_and_store(binary(), fun(() -> term()), pos_integer()) -> term().
Check for existing result or execute and store. This is the main entry point for idempotent command execution.
-spec delete(binary()) -> ok.
Delete a command result.
Lookup a command result.
Start the idempotency store.
-spec store(binary(), term(), pos_integer()) -> ok.
Store a command result.