#27480 closed New feature (fixed)
Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method
Description ¶
I do cache.set(crypt, cache.get(crypt))
in order to prolong the life of an entry of the cache.
There should be a shorter easier way like: cache.touch(crypt)
.
Change History (11)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Summary: | A method to touch an entry in a cache → Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method |
---|---|
Triage Stage: | Unreviewed → Accepted |
Seems reasonable since python-memcached and pyblicmc both implement a touch()
method, I think.
comment:3 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 8 years ago
Has patch: | set |
---|
comment:7 by , 8 years ago
Triage Stage: | Accepted → Someday/Maybe |
---|
comment:8 by , 7 years ago
Triage Stage: | Someday/Maybe → Accepted |
---|
Python-memcached blocking issues solved and patch updated, please review.
Note:
See TracTickets
for help on using tickets.
It also should have optional
timeout
argument.