# rdr **Repository Path**: ch-open/rdr ## Basic Information - **Project Name**: rdr - **Description**: RDR: redis data reveal - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2021-12-22 - **Last Updated**: 2023-03-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README RDR: redis data reveal ================================================= RDR(redis data reveal) is a tool to parse redis rdbfile. Comparing to [redis-rdb-tools](https://github.com/sripathikrishnan/redis-rdb-tools), RDR is implemented by golang, much faster (5GB rdbfile takes about 2mins on my PC). >特性: 1.目录分析:支持动态更新文件 2.RBD文件大于2将输出汇总结果 ## Usage for Linux System ``` NAME: rdr_linux - a tool to parse redis rdbfile USAGE: rdr_linux [global options] command [command options] [arguments...] VERSION: v0.0.1 COMMANDS: 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 ``` ``` NAME: rdr_linux show - show statistical information of rdbfile by webpage USAGE: rdr_linux show [command options] FILE1 [FILE2] [FILE3]... OPTIONS: --port value, -p value Port for rdr to listen (default: 8080) ``` ``` NAME: rdr_linux keys - get all keys from rdbfile USAGE: rdr_linux keys FILE1 [FILE2] [FILE3]... ``` [Linux amd64 Download](https://gitee.com/ch-open/rdr/attach_files/921264/download/rdr_linux) [OSX Download](https://gitee.com/ch-open/rdr/attach_files/921260/download/rdr_macos) [Windows Download](https://gitee.com/ch-open/rdr/attach_files/921266/download/rdr_x64.exe) After downloading maybe need add permisson to execute. ``` $ chmod a+x ./rdr* ``` ## Exapmle ```shell script #文件 $ ./rdr_linux show -p 8080 *.rdb #目录 $ ./rdr_linux show -p 8080 /tmp/rdb/ ``` Note that the memory usage is approximate. ![show example](/bindata/rdbfile.png) Note total analysis result. ![show total example](/bindata/total_analysis.png) ``` $ ./rdr_linux 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 ``` ## License This project is under Apache v2 License. See the [LICENSE](LICENSE) file for the full license text.