Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

MEMORY

Last updated
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.

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.

Same subcommands as Redis 7 and Valkey 8. See the subcommand pages for differences in their output.

INFO, memory and eviction