redis-cli MEMORY USAGE user:1

Category: Databases & SQL

redis-cli MEMORY USAGE user:1

Show memory used by one key

Returns the bytes a single key occupies, including its value and overhead. Great for finding oversized keys that blow up the memory budget. Add SAMPLES for more precise estimates on big collections.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.