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 526c803 commit e167204Copy full SHA for e167204
src/Illuminate/Redis/Connections/PredisClusterConnection.php
@@ -35,4 +35,19 @@ public function flushAll()
35
$node->executeCommand(tap(new FLUSHALL())->setArguments(func_get_args()));
36
}
37
38
+
39
+ /**
40
+ * Returns the keys that match a certain pattern.
41
+ *
42
+ * @param string $pattern
43
+ * @return array
44
+ */
45
+ public function keys(string $pattern)
46
+ {
47
+ $keys = [];
48
+ foreach ($this->client as $node) {
49
+ $keys[] = $node->keys($pattern);
50
+ }
51
+ return array_merge(...$keys);
52
53
0 commit comments