Function evict

Source
fn evict(st: &mut Shared)
Expand description

Drop least-recently-used decoded thumbnails beyond CAP entries or BUDGET bytes (failed memos are exempt: they cost nothing). ponytail: O(n) min-scan per insert over ≤512 entries on the worker thread — a real LRU list if CAP grows.