Skip to content

Configurable Encoder #3181

Open
Open
@dkang-quora

Description

@dkang-quora

class Encoder:

Feature request: Make Encoder configurable to allow users customize the transformation of keys and values.

  • namespacing (key prefix)
  • different encode/decode algorithm
  • encode/decode user-defined types, like dict or numpy.ndarray
class MyEncoder(Encoder):
  ...

client = Redis(host=..., encoder=MyEncoder())

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