There should be a shorter easier way like: `cache.touch(crypt)`.
--
Ticket URL: <https://code.djangoproject.com/ticket/27480>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Victor Porton):
It also should have optional `timeout` argument.
--
Ticket URL: <https://code.djangoproject.com/ticket/27480#comment:1>
* stage: Unreviewed => Accepted
Comment:
Seems reasonable since python-memcached and pyblicmc both implement a
`touch()` method, I think.
--
Ticket URL: <https://code.djangoproject.com/ticket/27480#comment:2>
* owner: nobody => Nicolas Noé
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/27480#comment:3>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/27480#comment:4>
* needs_better_patch: 0 => 1
Comment:
Comments for improvement are on the
[https://github.com/django/django/pull/7610 PR].
--
Ticket URL: <https://code.djangoproject.com/ticket/27480#comment:5>
* needs_better_patch: 1 => 0
Comment:
Patch was improved, please review.
--
Ticket URL: <https://code.djangoproject.com/ticket/27480#comment:6>
* stage: Accepted => Someday/Maybe
Comment:
This is blocked on two fixes for python-memcached
([https://github.com/linsomniac/python-memcached/pull/107 PR #107],
[https://github.com/linsomniac/python-memcached/pull/108 PR #108]) so that
the Django tests can use the latest version (#25277) where `touch()`
works.
--
Ticket URL: <https://code.djangoproject.com/ticket/27480#comment:7>
* stage: Someday/Maybe => Accepted
Comment:
Python-memcached blocking issues solved and patch updated, please review.
--
Ticket URL: <https://code.djangoproject.com/ticket/27480#comment:8>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"3246ad106517e61437f80e8ef3c9d216754039e7" 3246ad10]:
{{{
#!CommitTicketReference repository=""
revision="3246ad106517e61437f80e8ef3c9d216754039e7"
Fixed #27480 -- Added cache.touch().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27480#comment:9>
Comment (by Tim Graham <timograham@…>):
In [changeset:"2d75509bcb1db910da3c568f99b6ac778a79a98f" 2d75509b]:
{{{
#!CommitTicketReference repository=""
revision="2d75509bcb1db910da3c568f99b6ac778a79a98f"
Refs #27480 -- Moved FileBasedCache content writing logic to a method.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27480#comment:10>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"e2013b260a8f689eee280d00b96a9507895ec236" e2013b26]:
{{{
#!CommitTicketReference repository=""
revision="e2013b260a8f689eee280d00b96a9507895ec236"
Refs #29887, #27480 -- Moved touch() to BaseMemcachedCache.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27480#comment:11>