Skip to content
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

Merged
merged 2 commits into from
Mar 23, 2023

Conversation

enjoy-binbin
Copy link
Member

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.

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.
@enjoy-binbin
Copy link
Member Author

i am new to kvrocks / c++ / go, so I pick a simple task to do first.
please let me know if i do something wrong or i can do something to make the code better. thanks

@git-hulk
Copy link
Member

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.

Copy link
Member

@PragmaTwice PragmaTwice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@PragmaTwice PragmaTwice changed the title Add SUBSTR redis command Add SUBSTR command as redis Mar 23, 2023
@PragmaTwice
Copy link
Member

Thanks for your contribution! Merging...

@PragmaTwice PragmaTwice merged commit 8eb575c into apache:unstable Mar 23, 2023
@enjoy-binbin enjoy-binbin deleted the add_substr_command branch March 23, 2023 16:03
enjoy-binbin added a commit to enjoy-binbin/kvrocks-website that referenced this pull request Mar 25, 2023
PragmaTwice pushed a commit to apache/kvrocks-website that referenced this pull request Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants