Skip to main content

Module idempotency

Module idempotency 

Source
Expand description

Command idempotency (C8).

Caches command responses keyed by request_id. If a request_id is seen again within the TTL, the cached response is returned without re-executing the command. Works together with C4 (replay protection): C4 catches replays within its window; C8 serves cached results for requests that pass C4 but whose request_id is still cached.

Structs§

IdempotencyCache
Request-id → cached response cache for command idempotency.