namespaced keys
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Python Memcached |
Incomplete
|
Wishlist
|
Tarek Ziadé | ||
Bug Description
On the Danga website, they are describing a way to group keys under the same namespace, with a way to invalidate all those key on a single operation by defining a unique value like time() for the namespace.
>>> cache.set(
>>> key = cache.get(
>>> cache.set(key1, 'value1')
>>> key2 = cache.get(
>>> cache.set(key2, 'value1')
To invalidate all keys, we just have to increment the namespace key:
>>> cache,incr(
The keys will automatically change when they are calculated, thus invalidating all existing values (which can naturally expire then.)
It could be interesting to add that feature in python-memcached for people that need to group cached values.
| Changed in python-memcached: | |
| assignee: | nobody → Tarek Ziadé (tziade) |
This is a great idea, if someone implements it I'll include it.