skip to Main Content

I am using django-redis in django and want to turn off compressor. there are several options to set various types of compressors like zlib, lzma, etc. but not no compressor.

2

Answers


  1. Chosen as BEST ANSWER

    I found the answer and my mistake was it is not about compressor but serializer. So adding "SERIALIZER": "django_redis.serializers.json.JSONSerializer", to "OPTIONS" fixes the problem.


  2. From django-redis readme

    django-redis comes with compression support out of the box, but is
    deactivated by default
    . You can activate it setting up a concrete
    backend:

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search