django-redis icon indicating copy to clipboard operation
django-redis copied to clipboard

strict_map_key

Open fedy85 opened this issue 11 months ago • 0 comments

https://github.com/jazzband/django-redis/blob/ad9cc78dbfc400a5b89b1ba2287000c7a7e3e8c4/django_redis/serializers/msgpack.py#L13

New msgpack from version 1.0.0 has strict_map_key=True, so exception for int casting for value is thrown when using Django Redis cache here https://github.com/jazzband/django-redis/blob/master/django_redis/client/default.py#L482

Fast fix for me was to change from return msgpack.loads(value, raw=False) to return msgpack.loads(value, raw=False, strict_map_key=False)

fedy85 avatar Mar 08 '24 11:03 fedy85