Alex Peck

Results 40 comments of Alex Peck
trafficstars

I plan to replicate Caffeine's [size-based algorithm](https://github.com/ben-manes/caffeine/wiki/Eviction#size-based) for `ConcurrentLfu`, and have this as a built-in option. This would be similar to time-based eviction, but instead of an expiry calculator you...

I left a comment on your gist - in practice I think it will work but will be subject to incorrect total size due to races between `GetOrAdd`, `Set`, `TryRemove`...

I left another comment in your gist with a workaround using `GetOrAdd` - assuming inconsistent size between add/update is the issue you are hitting. Class methods can be made public,...

Superseded by #621.