GitHub:https://github.com/xueqiu/rdr
场景:最近Redis爆满, 但是不清楚具体哪些键占用的空间较多, 是否有设置过期时间等情况
1.下载软件
windows:https://github.com/xueqiu/rdr/releases/download/v0.0.1/rdr-windows.exe
添加执行权限:
$ chmod a+x ./rdr*
2.用法
./rdr show -p 8000 *.rdb -p: 指定开启的web端口号 最后指定rdb,redis快照的具体路径
更多使用方法:
NAME: rdr - a tool to parse redis rdbfile USAGE: rdr [global options] command [command options] [arguments...] VERSION: v0.0.1 COMMANDS: dump dump statistical information of rdbfile to STDOUT show show statistical information of rdbfile by webpage keys get all keys from rdbfile help, h Shows a list of commands or help for one command GLOBAL OPTIONS: --help, -h show help --version, -v print the version