fix: group.Set() not updating hot cache for all nodes
When there are more than 2 nodes, the hotCache is never updated when using the Set() method. Added a test which triggers the bug (you can test it by removing the accompanying fix done in groupcache.go).
However, it does look to me like the hotCache param in the Set method is misleading: the hot caches are used even if the provided arg is false, which would then yield out-of-date values to the other nodes 🤔
@thrawn01 You may want to incorporate this fix in your fork.
I've created a new PR to fix this issue on the new repo https://github.com/groupcache/groupcache-go/pull/11
The correct thing to do is ALWAYS delete the updated key from the hotCache. See the PR for explanation.