Protect against hash attacks

Moved from GitHub ristretto/131

Posted by martinmr:

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

Caffeine code: caffeine/BoundedLocalCache.java at 8bdfb0d95db523d15c2560f05a228468ecdbe98d · ben-manes/caffeine · GitHub