twoq-cache
TwoQ adaptive cache — scan-resistant hot/cold cache with promotion.
Usage
use TwoQCache;
let mut cache = new;
cache.insert;
assert_eq!;
How it works
- Cold: entries are inserted here first. Evicted if cold exceeds limit.
- Hot: entries promoted from cold when accessed. Protected from scan-style access patterns.