{"repo":"eko/gocache","free":true,"listed":false,"github":"https://github.com/eko/gocache","clone":"git clone https://github.com/eko/gocache.git","description":"☔️ A complete Go cache library that brings you multiple ways of managing your caches","language":"Go","stars":2881,"topics":["go","golang","cache","memcache","redis","memory","ristretto","bigcache","chain","hacktoberfest"],"license":"MIT","category":"databases-storage","readme_excerpt":"Gocache Guess what is Gocache? a Go cache library. This is an extendable cache library that brings you a lot of features for caching data. Overview Here is what it brings in detail: - ✅ Multiple cache stores: actually in memory, redis, or your own custom store - ✅ A chain cache: use multiple cache with a priority order (memory then fallback to a redis shared cache for instance) - ✅ A loadable cache: allow you to call a callback function to put your data back in cache - ✅ A metric cache to let you store metrics about your caches usage (hits, miss, set success, set error, ...) - ✅ A marshaler to automatically marshal/unmarshal your cache values as a struct - ✅ Define default values in stores and override them when setting data - ✅ Cache invalidation by expiration time and/or using tags - ✅ Use of Generics Built-in stores - Memory (bigcache) (allegro/bigcache) - Memory (ristretto) (dgraph-io/ristretto) - Memory (go-cache) (patrickmn/go-cache) - Memcache (bradfitz/memcache) - Redis (go-redis/redis) - Redis (rueidis) (redis/rueidis) - Freecache (coocood/freecache) - Pegasus (apache/incubator-pegasus) benchmark - Hazelcast (hazelcast-go-client/hazelcast) - More to come soon Built-in metrics providers - Prometheus Installation To begin working with the latest version of gocache, you can import the library in your project: and then, import the store(s) you want to use between all available ones: Then, simply use the following import statements: If you run into any errors, please be s","default_branch":null,"files":null,"tree":[],"storefront":"/r/eko","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/eko/gocache/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}