diff --git a/src/Symfony/Component/Lock/Store/RedisStore.php b/src/Symfony/Component/Lock/Store/RedisStore.php index 3ff1de6fa5171..89d10b75ee9c2 100644 --- a/src/Symfony/Component/Lock/Store/RedisStore.php +++ b/src/Symfony/Component/Lock/Store/RedisStore.php @@ -294,7 +294,13 @@ private function evaluate(string $script, string $resource, array $args): mixed } } - $this->handlePredisError(fn () => $this->redis->script('LOAD', $script)); + if ($this->redis->getConnection() instanceof \Predis\Connection\Cluster\ClusterInterface) { + foreach ($this->redis as $connection) { + $this->handlePredisError(fn () => $connection->script('LOAD', $script)); + } + } else { + $this->handlePredisError(fn () => $this->redis->script('LOAD', $script)); + } return $this->handlePredisError(fn () => $this->redis->evalSha($scriptSha, 1, $resource, ...$args)); } 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