Skip to content
masterclass Buddy

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.

Subscribe
  • MEMORY
  • MEMORY HELP
  • MEMORY DOCTOR
  • MEMORY STATS

Source: MEMORY USAGE | Docs. Checked 2026-11-03.