Skip to content

[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

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 7.3
Bug fix? no
New feature? yes
Deprecations? no
Issues -
License MIT

Valkey is getting a lot of traction, so let's support it as a new scheme (I'm not much into renaming everything :) )

@nicolas-grekas nicolas-grekas force-pushed the valkey branch 3 times, most recently from 2153d49 to bcd9500 Compare February 26, 2025 17:34
@carsonbot carsonbot changed the title Add support for valkey: / valkeys: schemes [Cache] Add support for valkey: / valkeys: schemes Feb 26, 2025
@nicolas-grekas nicolas-grekas force-pushed the valkey branch 4 times, most recently from 7ba1fdf to 90c665c Compare February 26, 2025 18:29
@@ -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'])) {
Copy link
Member

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 ?

Copy link
Member Author

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.

@nicolas-grekas
Copy link
Member Author

Comments addressed @stof, thanks for the review.

@nicolas-grekas nicolas-grekas force-pushed the valkey branch 7 times, most recently from ea420d0 to 9ff20c0 Compare February 27, 2025 15:10
@fabpot
Copy link
Member

fabpot commented Mar 5, 2025

Thank you @nicolas-grekas.

@fabpot fabpot merged commit db5108d into symfony:7.3 Mar 5, 2025
10 of 11 checks passed
@nicolas-grekas nicolas-grekas deleted the valkey branch March 5, 2025 09:22
@fabpot fabpot mentioned this pull request May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy