Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 349 Bytes

get-memory-usage-for-a-key-in-redis.md

File metadata and controls

20 lines (15 loc) · 349 Bytes

Get memory usage for a key in Redis

redis-cli MEMORY USAGE test
  • redis-cli - launch Redis CLI interface in interactive mode
  • MEMORY USAGE - returns amount of bytes used for specified key
  • test - name of the key to get memory usage for

group: mem

Example:

redis-cli MEMORY USAGE test1
(integer) 62