MEMORYMemory introspection subcommands.
| 语法 | MEMORY USAGE key [SAMPLES count] | STATS | DOCTOR | PURGE | MALLOC-STATS |
| 分组 | server |
| 参数个数 | -2 |
| 起始版本 | 1.0.0 |
| 标志 | readonly |
| 复杂度 | USAGE: O(1) — the accounting is exact, not sampled. STATS: O(1) from the instance-wide gauges |
| Redis 兼容性 | differs: USAGE's SAMPLES count is parsed and ignored (our accounting is exact); PURGE is a no-op (system allocator, no arena); DOCTOR and MALLOC-STATS return canned strings; STATS is a trimmed 8-field set |