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 f509b75 commit 163d41fCopy full SHA for 163d41f
src/Illuminate/Cache/RedisStore.php
@@ -14,6 +14,7 @@
14
class RedisStore extends TaggableStore implements LockProvider
15
{
16
use RetrievesMultipleKeys {
17
+ many as private manyAlias;
18
putMany as private putManyAlias;
19
}
20
@@ -92,6 +93,12 @@ public function many(array $keys)
92
93
94
$connection = $this->connection();
95
96
+ // Cluster connections do not support reading multiple values if the keys hash differently...
97
+ if ($connection instanceof PhpRedisClusterConnection ||
98
+ $connection instanceof PredisClusterConnection) {
99
+ return $this->manyAlias($keys);
100
+ }
101
+
102
$values = $connection->mget(array_map(function ($key) {
103
return $this->prefix.$key;
104
}, $keys));
0 commit comments