-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possibe to do layeredcache like https://github.com/karlseguin/ccache #132
Comments
Hm...so what do you propose exactly? 🤔 |
cache.Set("my-unique-key", "field",[]byte("value")) entry, _ := cache.Get("my-unique-key","field) cache.Del("my-unique-key") |
Forgive me, but I don't get it. |
sort of cache of caches, more like redis hash functions hset, hget etc. |
alternatively, how do we achieve the same thing with bigcache? |
1st solution I see:
So basically you've a prefix for each key, which says 'where' this keys is present. |
ok. thx |
key + field = value i can't clear all key fields with delete(key) |
Well, you can, you need to iterate over keys and check their prefix (see https://godoc.org/github.com/allegro/bigcache#BigCache.Iterator). |
that's not very smart. can design one for layeredcache? |
what other options do we have? smart / efficient way pls. |
I suspect that number of top layers is not very big, and it's also constant (with a high probability). |
sounds like a good idea. will implement when i have the time. i'm checking other options first. |
layered cache for use for http caching like
https://github.com/karlseguin/ccache
The text was updated successfully, but these errors were encountered: