#11503: Cache backend should expose a flush method
----------------------------+-----------------------------------------------
   Reporter:  andrewfong    |                Owner:  nobody    
     Status:  new           |            Milestone:            
  Component:  Cache system  |              Version:  SVN       
   Keywords:  flush         |                Stage:  Unreviewed
  Has_patch:  0             |           Needs_docs:  0         
Needs_tests:  0             |   Needs_better_patch:  0         
----------------------------+-----------------------------------------------
 The low level cache interface (django.core.cache.cache) should expose a
 method to flush out the entire cache. The primary use of this, off the top
 of my head, would be to make it easier to test caching by flushing out
 everything in between tests, although there are probably other use cases
 as well.

 Currently, in order to do this, you have to rely on different methods for
 each backend. For example, with the memcached backend, you call
 cache._cache.flush_all(), whereas with locmem, you set cache._cache = {}.
 Having backends implement a flush method would make this consistent across
 all supported backend options.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11503>
Django <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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to