Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method
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)
| Summary: |
A method to touch an entry in a cache → Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method
|
| Triage Stage: |
Unreviewed → Accepted
|
| Owner: |
changed from nobody to Nicolas Noé
|
| Status: |
new → assigned
|
| Patch needs improvement: |
set
|
| Patch needs improvement: |
unset
|
| Triage Stage: |
Accepted → Someday/Maybe
|
| Triage Stage: |
Someday/Maybe → Accepted
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
It also should have optional
timeoutargument.