Expand description
Hard-bounded, process-local rate-limit storage.
MemoryStore implements the same anchored fixed-window model as the
PostgreSQL backend while deliberately refusing to evict live entries. When
a shard is full, a new subject is denied until bounded cleanup frees space.
Structs§
- Memory
Store - A sharded, hard-bounded, process-local fixed-window store.
- Memory
Store Config - Configuration for a hard-bounded
MemoryStore. - Memory
Store Stats - Current bounded-store usage.
- System
Clock - A monotonic clock backed by
Instant.
Enums§
- Memory
Store Config Error - Invalid in-memory store configuration.
- Memory
Store Error - A fail-closed in-memory store error.
Traits§
- Clock
- Supplies monotonic elapsed time to a
MemoryStore.