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

Fields with binary data? #141

Open
dabbler0 opened this issue Jul 19, 2020 · 0 comments
Open

Fields with binary data? #141

dabbler0 opened this issue Jul 19, 2020 · 0 comments

Comments

@dabbler0
Copy link

dabbler0 commented Jul 19, 2020

Feature request: Right now limpyd initializes all Redis collections with decode_responses=True which makes it impossible to store raw binary data (which raw Redis can do, and is useful for things like images and audio). My workaround for this for the time being has been to fork limpyd, turn this off, and just decode things by hand when they are string values instead of binary values.

But in the longer term, it seems like it might make more sense to have two different kinds of fields, like a StringField and a BytesField, which are identical from Redis's perspective, but where StringField's getters are automatically decoded by limpyd, and BytesField's getters are not. Is this something that you might be interested in supporting in the future? Or is there already a way for limpyd to deal with binary data that I am missing?

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