-
Notifications
You must be signed in to change notification settings - Fork 554
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
Supported RESP Commands Info #287
Conversation
TalZaccai
commented
Apr 17, 2024
- Restructuring RespCommandInfo to read supported RESP commands info from JSON file (Garnet.server/Resp/RespCommandsInfo.json)
- Adding support for specifying command info when registering custom commands (example implemented in GarnetServer, parsing custom command info from GarnetServer/CustomRespCommandsInfo.json)
- Implementing COMMAND, COMMAND INFO & COMMAND COUNT RESP commands, matching information returned with Redis
- Implementing serialization & deserialization of command info to/from JSON and to/from RESP
- Adding CommandInfoUpdater tool for easily adding / removing supported commands & sub-commands info, generating an updated JSON file to replace RespCommandsInfo.json
- Adding tests for new commands specified in #4
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.
Great work on this PR! I'm happy to see the command info becoming much more maintainable. From what I can see there are no major changes needed besides some additional cleanup (see below).
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.
A few more small suggestions from my side, but I think the code looks good and can be merged afterwards.
Co-authored-by: Lukas Maas <lumaas@microsoft.com>
Co-authored-by: Lukas Maas <lumaas@microsoft.com>
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.
Looks like this PR is still triggering a few warnings. Ideally we should try to get rid of all of them and suppress any warnings that are false positives.
I have added some suggestions below.
Co-authored-by: Lukas Maas <lumaas@microsoft.com>
Co-authored-by: Lukas Maas <lumaas@microsoft.com>
Co-authored-by: Lukas Maas <lumaas@microsoft.com>
Co-authored-by: Lukas Maas <lumaas@microsoft.com>
…y issue in RespCommandsInfo initialization
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.
Thank you for addressing all the comments above. The code looks good to me now. I think we can go ahead and merge this into main. Thanks for your hard work! 🚀