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

Binary value in redis set #54

Open
atompie opened this issue Dec 6, 2024 · 0 comments
Open

Binary value in redis set #54

atompie opened this issue Dec 6, 2024 · 0 comments

Comments

@atompie
Copy link

atompie commented Dec 6, 2024

I am attempting to replace the standard Redis client with Upstash Redis. However, I am unsure if this is feasible because the standard Redis client allows binary data as input and leaves serialization and deserialization to the developer. Is there a way to achieve Redis-compatible behavior with Upstash Redis that can handle and store arbitrary binary data?

v = msgpack.packb("some data")
print(redis.set("8504a", v , ex=1800))
value = redis.get("8504")
print(value)

I know I could convert it to v to string but it would take months to redo the app and will break the backward compatibility with redis, which we would like to keep.

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