MEMORY

Since 1.1.0Server

Syntax

MEMORY
  • Flags: readonly
  • ACL categories: @server, @slow
  • Arity: -2

Reports on memory use. See its subcommands.

Subcommands

  • MEMORY DOCTOR: Returns a short report on memory health, in Redis's words.
  • MEMORY HELP: Lists the MEMORY subcommands and what each does.
  • MEMORY MALLOC-STATS: Returns the allocator's statistics.
  • MEMORY PURGE: Asks the allocator to give free memory back to the system.
  • MEMORY STATS: Returns memory figures as name-value pairs: used_memory, used_memory_rss, used_memory_peak and others.
  • MEMORY USAGE: Returns an estimate of the bytes key and its value take; nil if the key does not exist.