django-cache-url icon indicating copy to clipboard operation
django-cache-url copied to clipboard

Incompatibility when using `hiredis://` with Django 4

Open matthiask opened this issue 3 years ago • 3 comments

django-cache-url adds PARSER_CLASS to the options dictionary when using hiredis://... but Django's built-in cache backend doesn't like that.

Thanks!

matthiask avatar Mar 19 '22 08:03 matthiask

By the way, recent enough versions of redis-py will automatically select the hiredis parser if it is available so you should be able to just skip specifying the parser class.

matthiask avatar Mar 19 '22 08:03 matthiask

@matthiask, want to make a PR?

epicserve avatar Mar 20 '22 18:03 epicserve

Thanks for asking! I'll politely decline since I'd rather spend more time on Jazzband projects, e.g. the debug toolbar. django-cache-url has served me well in the past (and still does) but since I've mostly switched to using https://github.com/matthiask/speckenv/blob/main/speckenv_django.py this isn't my own itch anymore. speckenv_django is a bit smaller, doesn't modify urllib.uses_netloc and does everything I need re. configuring databases, email sending and caching.

I hope I don't come across as a freeloader here. Thanks again!

matthiask avatar Mar 21 '22 08:03 matthiask