-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Implement GET option of SET command #2003
Implement GET option of SET command #2003
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see some quick doc fixes but this is looking excellent, thank you! I need to poke a bit more with fresh eyes but I think we're good - 👍 from me on current naming.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've touched this so should get extra eyes /cc @mgravell
@martinekvili thanks for this!! |
Redis 6.2.0 has deprecated the GETSET command and in turn added the
GET
option to the SET command.Note: I am not 100% happy with the
StringSetAndGet
method name. However, I am quite torn, as it would be nice to call itStringGetSet
to better show the intent and the deprecation of the old method. On the other hand, I quite like how this driver follows the names of the underlying Redis commands quite closely. The current name tries to follow that convention.