-
Notifications
You must be signed in to change notification settings - Fork 494
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
Adds support for Redis 7 via redisVersion
metadata in all redis components
#2085
Conversation
Signed-off-by: Bernd Verst <[email protected]>
Signed-off-by: Bernd Verst <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #2085 +/- ##
==========================================
- Coverage 37.86% 37.52% -0.34%
==========================================
Files 193 193
Lines 24554 24721 +167
==========================================
- Hits 9297 9277 -20
- Misses 14543 14663 +120
- Partials 714 781 +67
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Bernd Verst <[email protected]>
More work needed to make certification tests pass. |
if err != nil { | ||
return err | ||
} | ||
|
||
r.ctx, r.cancel = context.WithCancel(context.Background()) | ||
|
||
_, err = r.client.Ping(r.ctx).Result() | ||
if r.legacyRedis { | ||
_, err = r.clientv8.Ping(r.ctx).Result() |
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.
Is there a way to use Go lang to avoid these if checks? Could we declare an interface containing the methods we use here and declare a reference to that? Then, the only difference would be which instanced is referenced but they would both implement the same interface.
Signed-off-by: Bernd Verst <[email protected]>
Description
Adds support for Redis 7 via
redisVersion
metadata in all redis componentsWhen setting
redisVersion
to7
/v7
or greater the new Redis Go SDK v9 will be used. For Redis 6 and below the v8 SDK will be used.Issue reference
#1909
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: