Redis: Show database size/size for keys

前端 未结 9 1778
青春惊慌失措
青春惊慌失措 2020-12-12 11:26

My redis instance seems to being growing very large and I\'d like to find out which of the multiple databases I have in there consumes how much memory. Redis\' INFO

9条回答
  •  春和景丽
    2020-12-12 12:08

    MEMORY USAGE key command gives you the number of bytes that a key and its value require to be stored in RAM.

    The reported usage is the total of memory allocations for data and administrative overheads that a key its value require (source redis documentation)

提交回复
热议问题