-
Notifications
You must be signed in to change notification settings - Fork 548
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
Extended set command to support SetOptions #879
Extended set command to support SetOptions #879
Conversation
I opened this to seek opinions and guidance on a couple of matters.
Once these questions are answered, I'll make the necessary changes, add tests, and update the documentation. I didn't want to dive too deep into the implementation until these uncertainties were addressed. Thank you! |
|
Yep, please no breakage here. |
Okay, I'll do that then, thanks. |
@jaymell Should be good to go. Let me know what you think. |
not sure I like the |
Good call. I've ranamed it to I've also renamed |
Sorry, forgot to run |
Thanks, this looks great! I'll leave it up to you, but might not be a bad idea to add a simple integration test of the command as well, just to cover all our bases. |
@jaymell I've added more tests for set options struct. Regarding integrations tests I have this one: https://github.com/RokasVaitkevicius/redis-rs/blob/50669d679e74656d6111f54588f548ed79f1849c/redis/tests/test_basic.rs#L1189 Is it sufficient or you want me to add more tests like this? |
This looks great. Please fix the outstanding lint issue and we'll get it merged 🙏 |
Linting issue fixed, need to add it as pre-commit hook or something :D |
Merged -- thanks again! |
Add `set_options`, which supports the full set of options available for Redis `SET` command.
Added new
set
command parameter:options
which supportsSET
options described in Redis documentation: https://redis.io/commands/set/Closes #876