How czotti/count-cache-rs works
Count Cache is a small Rust library for entries whose access count controls their lifetime. A caller inserts a value with a count, then retrieves it; each successful retrieval decrements the count, and reaching zero removes the entry. Callers can also increment a count or check whether a key exists. The implementation is concentrated in src/lib.rs; the graph separates its public behavior from its in-memory state.
Main entry points: lib.rs CountCache API
Components 3
Other components
- Library caller
- CountCache API
src/lib.rs - HashMap state
src/lib.rs
Connections 4
- Library caller → CountCache API: uses cache
README.md - CountCache API → HashMap state: stores entries
src/lib.rs - CountCache API → HashMap state: updates counts
src/lib.rs - CountCache API → HashMap state: reads and removes
src/lib.rs