Skip to main content

Module bounded_idempotence_cache

Module bounded_idempotence_cache 

Source
Expand description

Bounded idempotence cache for request_id deduplication.

Provides a FIFO cache with O(1) lookups that prevents unbounded memory growth while maintaining efficient duplicate detection.

Structs§

BoundedIdempotenceCache
A bounded FIFO cache for idempotency checking.

Constants§

DEFAULT_CAPACITY
Default capacity for the idempotence cache. ~3.2 MB memory for 32-byte average request_ids.