runlimit-memory 0.1.0

Hard-bounded in-memory fixed-window rate limiting
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! 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.

mod clock;
mod config;
mod store;

pub use clock::{Clock, SystemClock};
pub use config::{MemoryStoreConfig, MemoryStoreConfigError};
pub use store::{MemoryStore, MemoryStoreError, MemoryStoreStats};