Skip to content

Ability to GET or MGET raw bytes #658

@malthe

Description

@malthe

Currently, you need to configure decoding preferences on the connection or pool object, and eventually this is written to connection._parser.encoding.

I have a use-case where I occassionally need to GET or MGET raw bytestrings (this is Python 3). There is no way to easily do this except to create a new connection.

Perhaps an easy fix is to simply say redis.get(..., encoding=None) – ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions