You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #59869 [Cache] Add support for valkey: / valkeys: schemes (nicolas-grekas)
This PR was merged into the 7.3 branch.
Discussion
----------
[Cache] Add support for `valkey:` / `valkeys:` schemes
| 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 :) )
Commits
-------
5546196 Add support for `valkey:` / `valkeys:` schemes
thrownewInvalidArgumentException('Unsupported DSN: it does not start with "redis[s]:", "memcached:", "couchbase:", "mysql:", "oci:", "pgsql:", "sqlsrv:" nor "sqlite:".');
131
+
thrownewInvalidArgumentException('Unsupported DSN: it does not start with "redis[s]:", "valkey[s]:", "memcached:", "couchbase:", "mysql:", "oci:", "pgsql:", "sqlsrv:" nor "sqlite:".');
thrownewCacheException(\sprintf('Cannot use Redis Sentinel: class "%s" does not extend "Predis\Client" and neither ext-redis >= 5.2 nor ext-relay have been found.', $class));
218
228
}
219
229
@@ -237,7 +247,7 @@ public static function createConnection(#[\SensitiveParameter] string $dsn, arra
237
247
$host = 'tls://'.$host;
238
248
}
239
249
240
-
if (!isset($params['redis_sentinel'])) {
250
+
if (!isset($params['sentinel'])) {
241
251
break;
242
252
}
243
253
@@ -263,15 +273,15 @@ public static function createConnection(#[\SensitiveParameter] string $dsn, arra
} while (++$hostIndex < \count($hosts) && !$address);
272
282
273
-
if (isset($params['redis_sentinel']) && !$address) {
274
-
thrownewInvalidArgumentException(\sprintf('Failed to retrieve master information from sentinel "%s".', $params['redis_sentinel']), previous: $redisException ?? null);
283
+
if (isset($params['sentinel']) && !$address) {
284
+
thrownewInvalidArgumentException(\sprintf('Failed to retrieve master information from sentinel "%s".', $params['sentinel']), previous: $redisException ?? null);
275
285
}
276
286
277
287
try {
@@ -446,11 +456,14 @@ public static function createConnection(#[\SensitiveParameter] string $dsn, arra
Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/Redis/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ CHANGELOG
6
6
7
7
* Implement the `CloseableTransportInterface` to allow closing the Redis connection
8
8
* Implement the `KeepaliveReceiverInterface` to enable asynchronously notifying Redis that the job is still being processed, in order to avoid timeouts
0 commit comments