Re: Django 1.9 cache.get_or_set works incorrectly with DummyCache backend

2015-12-01 Thread Oleksiy Ivanenko
Ticket in Trac https://code.djangoproject.com/ticket/25840 PS. Sorry for cross post. It was my first try to post in groups. On Tuesday, December 1, 2015 at 3:31:00 PM UTC+2, Tim Graham wrote: > > It seems to be an omission in the implementation. Feel free to create a > Trac ticket and offer a pa

Re: Django 1.9 cache.get_or_set works incorrectly with 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 works incorrectly with DummyCache backend

2015-12-01 Thread Oleksiy Ivanenko
Hi, I'm trying to use Django 1.9rc2 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 all my tests, when I use Dum