PREFIX.STATSReport key-count and byte statistics for a key prefix.
| Syntax | PREFIX.STATS prefix |
| Group | migration |
| Arity | 2 |
| Since | 3.0.0 |
| Flags | readonly, extension |
| Complexity | O(keys on the shard) — a full keyspace walk on every shard; the prefix cannot be precomputed |
| Redis compatibility | kevy-only: nearest is INFO keyspace's db0:keys=N,expires=M — the same two counters, but whole-DB and O(1) off a counter, where ours is per-prefix and therefore O(keyspace) |