Ben Manes
Ben Manes
JCache is an alternative standardized Java api which I don't like, but might be a helpful reference. They have a more powerful loader called `EntryProcessor` which computes around the entry...
[sturdyc](https://github.com/creativecreature/sturdyc) might be a helpful reference. It has loading, request coalescing (“buffering”), fallback caching (“passthrough”), and negative caching ("non-existent") but lacks good eviction/expiration. Their internal inFlight is a future and...
I believe you meant a cache stampede, which is often confused with the thundering herd problem but that is slightly different. It's important to note that if you also use...
Favoring recency can be a disadvantage in workloads that perform scans such as database, search, or analytical queries. The `>` approach to restrict admission rather than `>=` to allow lets...
Yes, it is `1` but there is no algorithmic justification. It was to reduces this type of question. It comes up either because someone has an assumption in their unit...
For a weighted cache I [adjust](https://github.com/ben-manes/caffeine/blob/1e1a5090b6ef3cb1361aba3c7b723221e6b6321f/caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java#L1884-L1893) the sketch's size at runtime. It hasn't been a problem since the query is cheap and usually no-ops. It also protects against someone trying...
oh that is unfortunate. I don't recall observing any degradations in my tests, but I'll see if I can reproduce that. You also have the doorkeeper, was that also adjusted...
I have an old [spreadsheet](https://docs.google.com/spreadsheets/d/1G3deNz1gJCoXBE2IuraUSwLE7H_EMn4Sn2GU0HTpI5Y/edit#gid=928374040) of data when I was originally investigating eviction policies. That can serve as a baseline to ensure nothing seems amiss. I took W-TinyLFU (1%) which...
btw, I used the [3-round hash function](https://github.com/skeeto/hash-prospector#three-round-functions) from [hash-prospector](https://nullprogram.com/blog/2018/07/31/). I should probably add that as a doc reference. I thought using the first two rounds for the block and adding...
I was skimming over the code thanks to @vmg [work](https://github.com/vitessio/vitess/pull/13939) on bringing it into Vitess. 🔥 You might want to verify whether your implementation protects against hash flooding attacks, as...