-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Support stralgo command #2586
Support stralgo command #2586
Conversation
73626e1
to
cb8b382
Compare
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.
@yangbodong22011 Sorry, for participating late. But there were several aspects that I wanted to address. So a short comment or review was not an option.
- If the method name is
strAlgoLcs
, we already know that the algorithm/subcommand is LCS. AddingStrAlgo algorithm
param is just redundant. - Current
StrAlgoParams
works for LCS but it may not be convenient in future (if any) algorithms for both users and developers. Naming it(StrAlgo)LCSParams
seems a safer choice. - For same reason,
StringMatchResult
may be better to containLCS
. Also put that inresp
package. - How about two different methods
strAlgoLcs
andstrAlgoLcsKeys
(and the Params withoutkeys
option); so thatstrAlgoLcsKeys
can be used in Cluster as well?
StrAlgoParams for pass params to redis and StringMatchResult is the result
cb8b382
to
e2a9bf5
Compare
@sazzad16 @dengliming thanks, all done, pls review again when you have time. |
e395b8c
to
2f24a75
Compare
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.
Almost LGTM!
Sorry to annoy you, but I'm going to nitpick about two things.
- Order of method parameters should be:
keyA/strA, keyB/strB, params
.
StrAlgoLCSParams
2f24a75
to
594362a
Compare
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!
* add redis6.0 command `stralgo` support * Support stralgo command StrAlgoParams for pass params to redis and StringMatchResult is the result * Add strAlgoLCSStrings command and remove strings option from StrAlgoLCSParams * Update src/main/java/redis/clients/jedis/resps/LCSMatchResult.java Co-authored-by: ljwlc <liujinwei@inspur.com> Co-authored-by: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com>
Handle #2328 and Resolves #2583