Comments (1)
Hi,
Unless most of cache stores are key/value ones, this cannot be done.
Gocache only brings an interface to all stores but nothing is stored in memory.
In your case, you should keep a key containing all the keys you wrote in your store in order to be able to retrieve them all. Using Redis you can use sets for this.
Hope it helps. Closing this as there is no issue with gocache library here.
from gocache.
Related Issues (20)
- release request and doc updates to fix rediscluster v9 HOT 4
- Pegasus library has moved (part of why `go get -u` fails for projects that use gocache)
- Redis Get silently returns an empty []byte for stored []byte values HOT 2
- BigCache implementation does not return an error of type *store.NotFound when the key is not found HOT 1
- ChainCache.Get failing with BigCache store v4.2.0 (GetWithTTL not implemented error)
- Feature request: kube group
- Is it possible to set an option during NewLoadable or Get to ensure that when there is no value, it directly performs a synchronous set instead of an asynchronous set? HOT 1
- Datadog for metrics?
- Cache race condition problem HOT 2
- ristretto readme example has incomplete information about importing ristretto_store HOT 4
- Cannot use go-cache as backend cache for cache.NewMetric HOT 2
- should I turn on metric switch within high concurrency application?
- Feature Request: Store for maypok86/otter cache (s3-fifo)
- Is there any way to limit size for cache ? HOT 1
- Avoid parallel running a load function for the same key HOT 2
- Multiple caches, one metric
- migrate to fork of mock library
- Tag Update Request for Changes in PR #231 HOT 1
- Load function can be called multiple times for a single cache key before expiration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gocache.