2

Is there a way to get a report from Redis with columns Key and Size?

1 Answer 1

4

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.

Sign up to request clarification or add additional context in comments.

16 Comments

im using redis desktop manager... it's console tells me that the command is invalid...
@Leonardo on which platform you are?
A better alternative as of v4 is MEMORY USAGE <key>
@laravellevaral i'm using Azure redis cache... it recognizes several commands, but --bigkeys doesnt stick...
@Leonardo try MEMORY USAGE <key> as mentioned by itamer in comments
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.