Create a cache with caller-defined weight accounting and optional entry limits.
Number of currently retained entries.
Return a new frozen snapshot of usage and limits.
Sum of currently retained entry weights.
Remove all entries and reset retained weight to zero.
Live iterator, ordered least to most recently used.
LRU bounded by both entry count and caller-defined weight units.