-
Notifications
You must be signed in to change notification settings - Fork 504
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 SUBSTR command as redis #1347
Conversation
This PR adds the SUBSTR command, command syntax is exactly the same as GETRANGE. Although SUBSTR is already deprecated (It can be replaced by GETRANGE), we still want to support it. Note that go-redis does not support the SUBSTR command, so rdb.Do is used in go tests to test it.
i am new to kvrocks / c++ / go, so I pick a simple task to do first. |
Thanks for @enjoy-binbin contribution. I think it makes sense to support it for compatibility reasons, and it also doesn't introduce any complexity to the project. |
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.
LGTM.
Thanks for your contribution! Merging... |
SUBSTR was added in apache/kvrocks#1347
SUBSTR was added in apache/kvrocks#1347
This PR adds the SUBSTR command, command syntax is exactly
the same as GETRANGE. Although SUBSTR is already deprecated
(It can be replaced by GETRANGE), we still want to support it.
Note that go-redis does not support the SUBSTR command, so rdb.Do
is used in go tests to test it.