Is there a way to get a report from Redis with columns Key and Size?
1 Answer
You can get the big keys with this command
redis-cli --bigkeys In your redis-cli run this command to get the Key length
DEBUG OBJECT <key> above command returns serializedlength which may be you are looking for.
16 Comments
Leonardo
im using redis desktop manager... it's console tells me that the command is invalid...
FULL STACK DEV
@Leonardo on which platform you are?
Itamar Haber
A better alternative as of v4 is
MEMORY USAGE <key>Leonardo
@laravellevaral i'm using Azure redis cache... it recognizes several commands, but --bigkeys doesnt stick...
FULL STACK DEV
@Leonardo try
MEMORY USAGE <key> as mentioned by itamer in comments |