Skip to content

strict_map_key #738

Open
Open
@fedy85

Description

@fedy85

return msgpack.loads(value, raw=False)

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions