-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
fix(redis): version detection logic #11815
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
fix(redis): version detection logic #11815
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to c2aba88
Previous suggestionsSuggestions up to commit f26ac5f
Suggestions up to commit cbc41cf
|
|||||||||||||||||||||||||||||||||||||
commit: |
gioboa
left a comment
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.
It looks good to me 👏
is the ; at the beginning intentional ;(cache as any).detectRedisVersion() ?
to avoid typescript interpreting it as a call of the previous line RedisQueryResultCache |
mguida22
left a comment
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.
This fix looks good, thanks for your work on it @ibrahimmenem.
I still think it's very confusing and error prone to set redisMajorVersion to either 3 or 5, and not the exact major version number. In a future PR we should set this to the proper version update code that uses it to treat 3/4 as the same.
Thanks for the clarification 🙏 |
Co-authored-by: AdolfodelSel <adolfo.selllano@gmail.com> Co-authored-by: Giorgio Boa <35845425+gioboa@users.noreply.github.com> Co-authored-by: Mike Guida <mike@mguida.com>
fix bug with redis version detection logic
cherry-pick changes from #11767
fixes #11635
fixes #11749
close #11767
close #11764
Description of change
Pull-Request Checklist