How to check memory used by all the keys in redis-server.
I have started redis-server
with appendonly yes
option. To check size of an individual key I am using following commands-
127.0.0.1:6379> set foo bar
OK
127.0.0.1:6379> memory usage foo
(integer) 50
How do I get memory usage of all the existing keys in redis