[Django] #27480: A method to touch an entry in a cache

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

[Django] #27480: A method to touch an entry in a cache

Django
#27480: A method to touch an entry in a cache
-----------------------------------------------+------------------------
               Reporter:  Victor Porton        |          Owner:  nobody
                   Type:  New feature          |         Status:  new
              Component:  Core (Cache system)  |        Version:  1.10
               Severity:  Normal               |       Keywords:
           Triage Stage:  Unreviewed           |      Has patch:  0
    Needs documentation:  0                    |    Needs tests:  0
Patch needs improvement:  0                    |  Easy pickings:  0
                  UI/UX:  0                    |
-----------------------------------------------+------------------------
 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)`.

--
Ticket URL: <https://code.djangoproject.com/ticket/27480>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/050.4d6d26c8893eb56753c383f811d2cce8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27480: A method to touch an entry in a cache

Django
#27480: A method to touch an entry in a cache
-------------------------------------+-------------------------------------
     Reporter:  Victor Porton        |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Core (Cache system)  |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Victor Porton):

 It also should have optional `timeout` argument.

--
Ticket URL: <https://code.djangoproject.com/ticket/27480#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.38b52bf9f9140418b851f3d84221e3a2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method (was: A method to touch an entry in a cache)

Django
In reply to this post by Django
#27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method
-------------------------------------+------------------------------------
     Reporter:  Victor Porton        |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Core (Cache system)  |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+------------------------------------
Changes (by Tim Graham):

 * 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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.ca723dfc4db4dd58c22712932af86d85%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method

Django
In reply to this post by Django
#27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method
-------------------------------------+-------------------------------------
     Reporter:  Victor Porton        |                    Owner:  Nicolas
                                     |  Noé
         Type:  New feature          |                   Status:  assigned
    Component:  Core (Cache system)  |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Nicolas Noé):

 * owner:  nobody => Nicolas Noé
 * status:  new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/27480#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.f745395fd407fa35b731f7b7b2fdf949%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method

Django
In reply to this post by Django
#27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method
-------------------------------------+-------------------------------------
     Reporter:  Victor Porton        |                    Owner:  Nicolas
                                     |  Noé
         Type:  New feature          |                   Status:  assigned
    Component:  Core (Cache system)  |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Nicolas Noé):

 * has_patch:  0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/27480#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.f77d8024cb0803054d93272a6bb2d9a2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method

Django
In reply to this post by Django
#27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method
-------------------------------------+-------------------------------------
     Reporter:  Victor Porton        |                    Owner:  Nicolas
                                     |  Noé
         Type:  New feature          |                   Status:  assigned
    Component:  Core (Cache system)  |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

 * 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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.ae5351b573fe3e33a8acfdd2248716a2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method

Django
In reply to this post by Django
#27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method
-------------------------------------+-------------------------------------
     Reporter:  Victor Porton        |                    Owner:  Nicolas
                                     |  Noé
         Type:  New feature          |                   Status:  assigned
    Component:  Core (Cache system)  |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Nicolas Noé):

 * needs_better_patch:  1 => 0


Comment:

 Patch was improved, please review.

--
Ticket URL: <https://code.djangoproject.com/ticket/27480#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.7df2629cc5d826c570392237018ff47e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method

Django
In reply to this post by Django
#27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method
-------------------------------------+-------------------------------------
     Reporter:  Victor Porton        |                    Owner:  Nicolas
                                     |  Noé
         Type:  New feature          |                   Status:  assigned
    Component:  Core (Cache system)  |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

 * 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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.65a0987dd119b90c4b77e9297cb61871%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method

Django
In reply to this post by Django
#27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method
-------------------------------------+-------------------------------------
     Reporter:  Victor Porton        |                    Owner:  Nicolas
                                     |  Noé
         Type:  New feature          |                   Status:  assigned
    Component:  Core (Cache system)  |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Nicolas Noé):

 * 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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.e49aa4cdbc44ad561da2c5d825675d0f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method

Django
In reply to this post by Django
#27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method
-------------------------------------+-------------------------------------
     Reporter:  Victor Porton        |                    Owner:  Nicolas
                                     |  Noé
         Type:  New feature          |                   Status:  closed
    Component:  Core (Cache system)  |                  Version:  1.10
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

 * 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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.8e8f651b501ff82dea5497ba192911d7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method

Django
In reply to this post by Django
#27480: Add a Cache.touch(key, timeout=DEFAULT_TIMEOUT) method
-------------------------------------+-------------------------------------
     Reporter:  Victor Porton        |                    Owner:  Nicolas
                                     |  Noé
         Type:  New feature          |                   Status:  closed
    Component:  Core (Cache system)  |                  Version:  1.10
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.f4cef1ea7b646c139085af7746576cbf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.