-
Notifications
You must be signed in to change notification settings - Fork 473
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
Add SET command KEEPTLE and GET options supported #1935
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.
Overall is good, thanks for your contribution.
Co-authored-by: Twice <twice@apache.org>
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 1 New issue |
@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
KEEPTLE
andGET
options in theSET
command.I have also updated the
GETSET
,SETEX
,SETNX
, andSETXX
commands to use the newset
function.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.