patrickmn / go-cache

An in-memory key:value store/cache (similar to Memcached) library for Go, suitable for single-machine applications.
https://patrickmn.com/projects/go-cache/
MIT License
8.16k stars 874 forks source link

multilevel cache feature #101

Closed seaguest closed 5 years ago

seaguest commented 5 years ago

Hello,

Multilevel cache (go-cache + redis) will be quite useful in server cluster case, will this be in the plan?

Is there any good solution for multilevel cache solution?

patrickmn commented 5 years ago

To be honest, in this case it would probably be better to use a Redis client library that does in-memory caching (assuming that that actually exists). But you could implement something that queries go-cache before querying redis. It's not in scope for the library itself though.