KEYSReturn every key matching the glob pattern (cross-shard gather).
| Syntax | KEYS pattern |
| Group | scan |
| Arity | 2 |
| Since | 1.0.0 |
| Flags | readonly |
| Complexity | O(N) keys in the whole keyspace — every shard walks its entire map, plus an O(P*K) glob match per key |
| Redis compatibility | full |