golang / groupcache

groupcache is a caching and cache-filling library, intended as a replacement for memcached in many cases.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a plan to add support for Go modules?

easwars opened this issue · comments

This is a request from the gRPC-Go team.
We plan to use the LRU cache implementation found here and would be nice if groupcache had Go modules support.

I can send a PR for the same if you are OK.

You mean just adding a go.mod file? It should work without one, but sure. Feel free to send a PR.

How is gRPC-Go using groupcache?

We are only interested in using the LRU implementation from groupcache. We plan to use that in one of the loadBalancing policy implementations where we need to cache the responses from a management server.

On second thoughts, maybe we should just duplicate that code.

Yeah, I'd just duplicate it. There are many LRU implementations around with various properties too.