Re:Ristretto: A High Performance, Concurrent, Memory-Bound G...
by mrjn on Saturday September 21, 2019 @03:10PM
(#21037265)
> by evicting more than one key when at capacity (say, evict n% of total keys)
Ristretto does that already. It evicts as many keys as needed to stay within the MaxCost. This is done outside the critical path by background goroutines. However, you also don't want to evict too many keys, because that would affect the hit ratios.
Ristretto does that already. It evicts as many keys as needed to stay within the MaxCost. This is done outside the critical path by background goroutines. However, you also don't want to evict too many keys, because that would affect the hit ratios.