Support database option at Valkey connector #2307
Conversation
Summary of ChangesHello @bluayer, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the LMCache Valkey connector to support numbered databases, a feature recently introduced in Valkey 9.0 and Valkey-GLIDE 2.1+. This change allows users to specify a database ID in their Valkey cluster configurations, providing greater flexibility and control over data organization within the Valkey environment. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
944fd91 to
826a949
Compare
There was a problem hiding this comment.
Code Review
This pull request adds support for numbered databases in the Valkey cluster connector, which is a useful feature enhancement. The changes correctly update the connector logic and the documentation. I have two suggestions to improve the implementation's robustness and maintainability. One is a high-severity recommendation to refactor the connector adapter to be stateless, preventing potential configuration bugs. The other is a medium-severity suggestion to improve consistency in how the database ID is handled during client configuration.
DongDongJu
left a comment
There was a problem hiding this comment.
LGTM,
Could you add the some more description in doc difference among the cluster modes?(nodes, endpoint, databases)
|
Thank you for your time, @DongDongJu. |
|
Hi, @DongDongJu and @sammshen. I know you're busy, so I apologize for the mention. When you have a moment, could you let me know if there's anything else I should address to help move the PR review forward? |
DongDongJu
left a comment
There was a problem hiding this comment.
LGTM. Thanks for revise.
Signed-off-by: Jungwoo Song <bluayer@gmail.com>
Signed-off-by: Jungwoo Song <bluayer@gmail.com>
Signed-off-by: Jungwoo Song <bluayer@gmail.com>
Head branch was pushed to by a user without write access
9101e04 to
63386fa
Compare
|
Could my code be causing the CI failure? I'm not sure what the cause is... |
* feat: support clsuter-mode numbered databases Signed-off-by: Jungwoo Song <bluayer@gmail.com> * docs: for numbered database Signed-off-by: Jungwoo Song <bluayer@gmail.com> * docs: add desc for cluster-mode and numbered databases Signed-off-by: Jungwoo Song <bluayer@gmail.com> --------- Signed-off-by: Jungwoo Song <bluayer@gmail.com>
* feat: support clsuter-mode numbered databases Signed-off-by: Jungwoo Song <bluayer@gmail.com> * docs: for numbered database Signed-off-by: Jungwoo Song <bluayer@gmail.com> * docs: add desc for cluster-mode and numbered databases Signed-off-by: Jungwoo Song <bluayer@gmail.com> --------- Signed-off-by: Jungwoo Song <bluayer@gmail.com> Signed-off-by: Aaron Wu <aaron.wu@dell.com>
* feat: support clsuter-mode numbered databases Signed-off-by: Jungwoo Song <bluayer@gmail.com> * docs: for numbered database Signed-off-by: Jungwoo Song <bluayer@gmail.com> * docs: add desc for cluster-mode and numbered databases Signed-off-by: Jungwoo Song <bluayer@gmail.com> --------- Signed-off-by: Jungwoo Song <bluayer@gmail.com>
* feat: support clsuter-mode numbered databases Signed-off-by: Jungwoo Song <bluayer@gmail.com> * docs: for numbered database Signed-off-by: Jungwoo Song <bluayer@gmail.com> * docs: add desc for cluster-mode and numbered databases Signed-off-by: Jungwoo Song <bluayer@gmail.com> --------- Signed-off-by: Jungwoo Song <bluayer@gmail.com>
* feat: support clsuter-mode numbered databases Signed-off-by: Jungwoo Song <bluayer@gmail.com> * docs: for numbered database Signed-off-by: Jungwoo Song <bluayer@gmail.com> * docs: add desc for cluster-mode and numbered databases Signed-off-by: Jungwoo Song <bluayer@gmail.com> --------- Signed-off-by: Jungwoo Song <bluayer@gmail.com>
* feat: support clsuter-mode numbered databases Signed-off-by: Jungwoo Song <bluayer@gmail.com> * docs: for numbered database Signed-off-by: Jungwoo Song <bluayer@gmail.com> * docs: add desc for cluster-mode and numbered databases Signed-off-by: Jungwoo Song <bluayer@gmail.com> --------- Signed-off-by: Jungwoo Song <bluayer@gmail.com>
What this PR does / why we need it:
Valkey 9.0 now supports cluster-mode numbered databases, just like in standalone mode. This PR is to support this(numbered database) in LMCache as well.
Special notes for your reviewers:
If applicable: