#6464: memcached cache backend incr/decr not implemented
------------------------------------------+---------------------------------
          Reporter:  [EMAIL PROTECTED]  |         Owner:  nobody                
   
            Status:  new                  |     Milestone:  post-1.0            
     
         Component:  Cache system         |       Version:  SVN                 
     
        Resolution:                       |      Keywords:  cache memcached 
incr decr
             Stage:  Accepted             |     Has_patch:  1                   
     
        Needs_docs:  1                    |   Needs_tests:  1                   
     
Needs_better_patch:  0                    |  
------------------------------------------+---------------------------------
Changes (by mmalone):

  * milestone:  => post-1.0

Comment:

 New patch is a simple wrapper around the memcache library for the
 memcached backend. It also includes a simple (non-atomic) implementation
 for other cache backends, and raises a NotImplementedException for the
 dummy cache backend (we can't return the incremented/decremented value
 since we don't have the original value).

 Since non-memcache backends can't perform this operation atomically, it
 might be better to raise a NotImplementedException for all non-memcache
 backends. That said, I added docs that make it pretty clear that these
 operations are only atomic for memcached...

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6464#comment:4>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to