-
Notifications
You must be signed in to change notification settings - Fork 978
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
Deprecate the STRALGO command and implement the LCS in its place #3037
base: main
Are you sure you want to change the base?
Conversation
Hey folks, there seem to be test failures, could you check locally if tests pass?
|
I'm really sorry. |
89accb7
to
74ee544
Compare
@tishun I modified the code to make the integration test run successfully! |
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.
Hey, apologies for the late response, there are a few things that are missing I am afraid.
You can get some ideas from the original PR that introduced STRALGO, but in short:
- we use a template file to generate the different commands, in this case the
src/main/templates/io/lettuce/core/api/RedisStringCommands.java
, after adding the new command there you can call the tests in thesrc/test/java/io/lettuce/apigenerator
to generate the different methods in all related classes. You can comment out the other commands in the "Constants" class to avoid generating anything else but the RedisStringCommands.
74ee544
to
63ee6b9
Compare
I realized through the template file ( Additionally, I noticed I had missed the NodeSelection series, so I registered that part as well and re-uploaded the code. Thank you so much for your review @tishun! |
If you run the Then all you have to do is wire the implementation in. |
Looks awesome, thanks for the contribution! |
Deprecate the STRALGO command and implement the LCS in its place
Is your feature request related to a problem? Please describe
With redis/redis#9744 the STRALGO command was deprecated in Redis 7.0
Tests that test the STRALGO command have not been running since the pipeline only uses latest Redis versions
Describe the solution you'd like
Implement the LCS command
Describe alternatives you've considered
For users of the Lettuce driver the only possible solution now is to use the Custom commands
Closes #2987
Make sure that:
mvn formatter:format
target. Don’t submit any formatting related changes.