Skip to main content

runlimit_memory/
lib.rs

1//! Hard-bounded, process-local rate-limit storage.
2//!
3//! [`MemoryStore`] implements the same anchored fixed-window model as the
4//! `PostgreSQL` backend while deliberately refusing to evict live entries. When
5//! a shard is full, a new subject is denied until bounded cleanup frees space.
6
7mod clock;
8mod config;
9mod store;
10
11pub use clock::{Clock, SystemClock};
12pub use config::{MemoryStoreConfig, MemoryStoreConfigError};
13pub use store::{MemoryStore, MemoryStoreError, MemoryStoreStats};