Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable Encoder #3181

Open
dkang-quora opened this issue Mar 13, 2024 · 0 comments
Open

Configurable Encoder #3181

dkang-quora opened this issue Mar 13, 2024 · 0 comments

Comments

@dkang-quora
Copy link

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())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant