Cui Pengfei 崔鹏飞
Cui Pengfei 崔鹏飞

Reputation: 8305

redis-cli interactive mode: how to use --bigkeys

redis-cli -h host -p port --bigkeys

will show a list of large keys, which is very convenient.

but in my environment, I am limited to the interactive mode.

Before I can type any commands, it's already connected to redis via interactive mode. Like:

redis-cli -h host -p port 
> x.x.x.x@port connected!
> i can start typing here

Is there any way to use the --bigkeys command inside the interactive mode?

Upvotes: 1

Views: 2417

Answers (1)

Itamar Haber
Itamar Haber

Reputation: 49932

You can't use --bigkeys from the CLI's interactive/REPL mode. It is only available from the command line. What you can, perhaps, do is get the database's snapshot (RDB) and load it locally. Then you'd have, hopefully, unrestricted access via your own CLI.

Alternatively, there are other tools for analyzing Redis' keyspace. One such tool that I know of is RedisInsight (https://redislabs.com/redis-enterprise/redis-insight/).

Upvotes: 2

Related Questions