Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec46891 commit a75abfdCopy full SHA for a75abfd
src/Symfony/Component/Cache/Adapter/RedisAdapter.php
@@ -303,6 +303,14 @@ private function pipeline(\Closure $generator)
303
foreach ($results as $k => list($h, $c)) {
304
$results[$k] = $connections[$h][$c];
305
}
306
+ } elseif ($this->redis instanceof \RedisCluster) {
307
+ // phpredis doesn't support pipelining with RedisCluster
308
+ // see https://github.com/phpredis/phpredis/blob/develop/cluster.markdown#pipelining
309
+ $result = [];
310
+ foreach ($generator() as $command => $args) {
311
+ $ids[] = $args[0];
312
+ $result[] = call_user_func_array(array($this->redis, $command), $args);
313
+ }
314
} else {
315
$this->redis->multi(\Redis::PIPELINE);
316
foreach ($generator() as $command => $args) {
0 commit comments