Redis · Command
MEMORY
MEMORY USAGE estimates how many bytes a key and its value use in RAM. For aggregate values, it can sample nested values to estimate the total size.
Last updated
- Since
- 4.0.0
Syntax
MEMORY USAGE key [SAMPLES count]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
MEMORYMEMORY HELPMEMORY DOCTORMEMORY STATS