#25840: cache.get_or_set works incorrectly with DummyCache backend
-------------------------------------+-----------------------------------
     Reporter:  oleksiyivanenko      |      Owner:  nobody
         Type:  Bug                  |     Status:  new
    Component:  Core (Cache system)  |    Version:  1.9
     Severity:  Normal               |   Keywords:  get_or_set dummycache
 Triage Stage:  Unreviewed           |  Has patch:  1
Easy pickings:  0                    |      UI/UX:  0
-------------------------------------+-----------------------------------
 There is some issue when you use django.core.cache.cache.get_or_set with
 '''DummyCache backend'''.

 {{{
 from django.core.cache import cache

 cache.get_or_set('some_key', 'my_val')  # Always returns None. Not a
 default value
 }}}

 This thing brakes tests.
 I think it will be better to return default value from dummy cache.

--
Ticket URL: <https://code.djangoproject.com/ticket/25840>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/058.50be03fd025878a93eb26c000c8667c1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to