-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Cache] Add support for valkey:
/ valkeys:
schemes
#59869
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
Conversation
src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php
Outdated
Show resolved
Hide resolved
2153d49
to
bcd9500
Compare
valkey:
/ valkeys:
schemesvalkey:
/ valkeys:
schemes
7ba1fdf
to
90c665c
Compare
@@ -174,28 +174,24 @@ public static function createConnection(#[\SensitiveParameter] string $dsn, arra | |||
|
|||
$params += $query + $options + self::$defaultConnectionOptions; | |||
|
|||
if (isset($params['redis_sentinel']) && isset($params['sentinel_master'])) { |
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 removes the fact that you cannot use those options together. You know silently ignore redis_sentinel
when sentinel_master
(or the new sentinel
) is set. Doesn't this introduce a potential WTF debugging moment if $query
and $options
both configure this using different names for instance ?
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.
I don't think the exception is useful so I still prefer removing it.
I improved the merging logic to account for this case.
src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/RedisExtIntegrationTest.php
Outdated
Show resolved
Hide resolved
90c665c
to
ed69e13
Compare
Comments addressed @stof, thanks for the review. |
ea420d0
to
9ff20c0
Compare
Thank you @nicolas-grekas. |
Valkey is getting a lot of traction, so let's support it as a new scheme (I'm not much into renaming everything :) )