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 b2394c8 commit 09a66d5Copy full SHA for 09a66d5
src/Illuminate/Redis/Connections/PredisClusterConnection.php
@@ -35,4 +35,18 @@ public function flushAll()
35
$node->executeCommand(tap(new FLUSHALL())->setArguments(func_get_args()));
36
}
37
38
+
39
+ /**
40
+ * Flush the selected Redis database on all master nodes.
41
+ *
42
+ * @return array
43
+ */
44
+ public function keys(string $pattern)
45
+ {
46
+ $keys = [];
47
+ foreach ($this->client as $node) {
48
+ $keys[] = $node->keys($pattern);
49
+ }
50
+ return array_merge(...$keys);
51
52
0 commit comments