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

Any thought on serialize? #20

Open
WindSoilder opened this issue Oct 27, 2019 · 1 comment
Open

Any thought on serialize? #20

WindSoilder opened this issue Oct 27, 2019 · 1 comment

Comments

@WindSoilder
Copy link

Hi, I'm try to implement RESP serialization progress by myself. But sadly found that there are two type of string in redis(Bulk Strings and Simple Strings)...
I'm trying go to source code to find out solution, but here is not implemented :(

Do you have any thought on serialize rust object to both Bulk strings and Simple strings?

@WindSoilder WindSoilder changed the title Any thought on serialize?? Any thought on serialize? Oct 27, 2019
@michaelvanstraten
Copy link

michaelvanstraten commented Mar 2, 2022

I wrote a crate that implements Serialization and Deserialization, it provides Derive Macros that implements the redis::FromRedisValue and redis::ToRedisArgs traits from mitsuhiko / redis-rs for any struct in which every field's type also implements ToRedisArgs. Check it out redis-derive.

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

2 participants