Re: Django 1.9 cache.get_or_set issue while using DummyCache backend

2015-12-01 Thread Tim Graham
It seems to be an omission in the implementation. Feel free to create a Trac ticket and offer a patch if you can. For future reference, please don't cross post between django-users (appropriate place for "is it a bug?" questions) and django-developers. Thanks! On Tuesday, December 1, 2015 at 7

Django 1.9 cache.get_or_set issue while using DummyCache backend

2015-12-01 Thread Oleksiy Ivanenko
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