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:09:04 AM UTC-5, Oleksiy Ivanenko wrote:
>
> 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 DummyCache.
>
> Is this behaviour expected?
> Or we need to figure out how to handle it?
>
>
> ---
> Regards,
> Oleksiy Ivanenko
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" 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].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/ea43de65-c076-44d5-88c4-65b96d03c02c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to