dgraph-io / ristretto

A high performance memory-bound Go cache

Home Page:https://dgraph.io/blog/post/introducing-ristretto-high-perf-go-cache/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Protect against hash attacks.

martinmr opened this issue · comments

An attacker can prevent new items from being accepted by the policy by artificially raising the frequency of the victim.

Caffeine code: https://github.com/ben-manes/caffeine/blob/8bdfb0d95db523d15c2560f05a228468ecdbe98d/caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java#L752-L776

Github issues have been deprecated.
This issue has been moved to discuss. You can follow the conversation there and also subscribe to updates by changing your notification preferences.

drawing