-
Notifications
You must be signed in to change notification settings - Fork 592
Add SET command KEEPTLE and GET options supported #1935
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
Conversation
git-hulk
left a comment
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.
Overall is good, thanks for your contribution.
Co-authored-by: Twice <[email protected]>
|
|
@git-hulk Maybe we need to add a note to the documentation, telling users that the next version(2.8)supports the SET option with KEEPTLE and GET options? |
|
@jihuayu Sure, thank you! |
|
It feels like it could also be included in #1929 and done together |

closed #1925
In this PR, I have added support for
KEEPTLEandGEToptions in theSETcommand.I have also updated the
GETSET,SETEX,SETNX, andSETXXcommands to use the newsetfunction.By the way, I have a question about when to use
std::optional<std::string>&and when to usestd::string*?I think that both options are equivalent, but using
std::optional<std::string>&can help avoid null in the code.So I have used
std::optional<std::string>&in my code.