golang / groupcache

groupcache is a caching and cache-filling library, intended as a replacement for memcached in many cases.
Apache License 2.0
12.94k stars 1.39k forks source link

Force Local Cache #110

Closed d1ngd0 closed 5 years ago

d1ngd0 commented 5 years ago

Currently when requesting cache in a pool, the cache could be built by any peer within the pool. This means the context object will be present when generated by the local peer, but will not when generated by a remote peer. I have added a pull request #109 Which will force the peer to always be local, ensuring the context object is always present.