PREFIX.STATSReport key-count and byte statistics for a key prefix.
| 语法 | PREFIX.STATS prefix |
| 分组 | migration |
| 参数个数 | 2 |
| 起始版本 | 3.0.0 |
| 标志 | readonly, extension |
| 复杂度 | O(keys on the shard) — a full keyspace walk on every shard; the prefix cannot be precomputed |
| Redis 兼容性 | 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) |