RDR
是解析 redis rdbfile
工具。与redis-rdb-tools
相比,RDR 是由golang 实现的,速度更快(5GB rdbfile 在我的PC上大约需要2分钟)。
$ ./rdr show -p 8080 *.rdb
$ ./rdr keys example.rdb
portfolio:stock_follower_count:ZH314136
portfolio:stock_follower_count:ZH654106
portfolio:stock_follower:ZH617824
portfolio:stock_follower_count:ZH001019
portfolio:stock_follower_count:ZH346349
portfolio:stock_follower_count:ZH951803
portfolio:stock_follower:ZH924804
portfolio:stock_follower_count:INS104806
$ wget https://github.com/xueqiu/rdr/releases/download/v0.0.1/rdr-linux -O /usr/local/bin/rdr
$ chmod +x /usr/local/bin/rdr
$ curl https://github.com/xueqiu/rdr/releases/download/v0.0.1/rdr-darwin -o /usr/local/bin/rdr
$ chmod +x /usr/local/bin/rdr
# 浏览器下载下面链接,在点击运行
https://github.com/xueqiu/rdr/releases/download/v0.0.1/rdr-windows.exe
分析多个 Redis rdb
$ rdr keys FILE1 [FILE2] [FILE3]...