chio-bounded 0.1.2

Reusable bounded in-memory collections (ring, capacity-and-TTL map) with a live size gauge, for Chio serving processes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Reusable bounded in-memory collections for Chio serving processes.
//!
//! Core invariant: no long-lived collection in a serving process may exist
//! without (1) a capacity policy (ring, LRU, idle-sweep, or deny-at-cap) and
//! (2) a live size metric. This crate is the substrate: `Ring` and `BoundedMap`
//! each own a cloneable `SizeGauge`.

mod bounded_map;
mod gauge;
mod ring;
mod sync;

pub use bounded_map::BoundedMap;
pub use gauge::SizeGauge;
pub use ring::Ring;