The cache was working perfectly. That was the problem.
A 99.2% hit rate hid nine cache stampedes. What singleflight fixed, what it did not, and the two bugs that only exist under concurrency.
A 99.2% hit rate hid nine cache stampedes. What singleflight fixed, what it did not, and the two bugs that only exist under concurrency.