MEMORY
MEMORY subcommand [argument ...]
- Group
- Server
- Arity
- -2 (at least 2 words, counting the command name)
- Flags
- read-only
- HotKV Cloud
- All plans
- On-Premise
- no license needed
MEMORY is a container command for memory introspection. MEMORY HELP
lists the subcommands.
Subcommands
Section titled “Subcommands”| Subcommand | What it does |
|---|---|
| MEMORY USAGE | Estimated bytes a key and its value take. |
| MEMORY STATS | A breakdown of the server’s memory use. |
| MEMORY DOCTOR | A short report on memory problems, in plain English. |
| MEMORY PURGE | Return freed memory to the operating system. |
| MEMORY MALLOC-STATS | Allocated, peak and resident bytes as text. |
An unknown subcommand gets ERR unknown subcommand '<name>'. Try MEMORY HELP.
Compatibility
Section titled “Compatibility”Same subcommands as Redis 7 and Valkey 8. See the subcommand pages for differences in their output.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.