Skip to main content

Crate runlimit_memory

Crate runlimit_memory 

Source
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§

MemoryStore
A sharded, hard-bounded, process-local fixed-window store.
MemoryStoreConfig
Configuration for a hard-bounded MemoryStore.
MemoryStoreStats
Current bounded-store usage.
SystemClock
A monotonic clock backed by Instant.

Enums§

MemoryStoreConfigError
Invalid in-memory store configuration.
MemoryStoreError
A fail-closed in-memory store error.

Traits§

Clock
Supplies monotonic elapsed time to a MemoryStore.