|
|
|
|
|
by borlak
4707 days ago
|
|
I really wouldn't call this an alternative. If you are running memcached, it's very unlikely you can switch to Groupcache. Parts of your application may rely on the expiration feature. But the biggest change is the inability to overwrite a current cache key. Every application I've used does this constantly (object updates). Groupcache in its current form is useful for a very narrow set of applications. |
|
The only bit which could be tricky is if you want to clear the cache, I don't see a way of doing that from a quick look at the API. But to clear the cache you could have a special version key hashed into each key whose sole purpose is to empty the cache, which you bump whenever you want to remove all keys at once for whatever reason (in a perfect world, this shouldn't be necessary of course).