Tuesday, December 1, 2015

Django 1.9 cache.get_or_set issue while using DummyCache backend

Hi,

I'm trying to use Django 1.9rc2.
But I have issue while using django.core.cahe.cache.get_or_set with DummyCache backend.

from django.core.cache import cache

cache
.get_or_set('some_key', 'my_val')  # Always return None, instead of default value

This behaviour brakes lots of my tests.

Is this behaviour expected? Or we need to figure out some fixes for DummyCache backend?


---
Regards,
Oleksiy Ivanenko

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/35d41224-5f1d-4647-8b82-ceedcd44d727%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment