No description, website, or topics provided.
Switch branches/tags
Clone or download
dongmx Merge pull request #16 from LawrencePeng/master
添加Dump到STDOUT的功能
Latest commit b194126 Sep 9, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Godeps RDB v8 support #6 Jun 29, 2018
static Initial commit Mar 2, 2017
vendor/github.com RDB v8 support #6 Jun 29, 2018
views Initial commit Mar 2, 2017
LICENSE Initial commit Mar 2, 2017
README.md Merge branch 'master' into master Sep 4, 2018
counter.go Initial commit Mar 2, 2017
counter_test.go Initial commit Mar 2, 2017
decoder.go RDB v8 support #6 Jun 29, 2018
main.go 添加Dump到STDOUT的功能 Sep 7, 2018
memprofiler.go Initial commit Mar 2, 2017
render.go Initial commit Mar 2, 2017
safemap.go Initial commit Mar 2, 2017
template.go Initial commit Mar 2, 2017

README.md

RDR: redis data reveal

RDR(redis data reveal) is a tool to parse redis rdbfile. Comparing to redis-rdb-tools, RDR is implemented by golang, much faster (5GB rdbfile takes about 2mins on my PC).

Usage

NAME:
   rdr - a tool to parse redis rdbfile

USAGE:
   rdr [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 show - show statistical information of rdbfile by webpage

USAGE:
   rdr show [command options] FILE1 [FILE2] [FILE3]...

OPTIONS:
   --port value, -p value  Port for rdr to listen (default: 8080)
NAME:
   rdr keys - get all keys from rdbfile

USAGE:
   rdr keys FILE1 [FILE2] [FILE3]...

Linux amd64 Download

OSX Download

Windows Download

After downloading maybe need add permisson to execute.

$ chmod a+x ./rdr

Exapmle

$ ./rdr show -p 8080 *.rdb

Note that the memory usage is approximate. show example

$ ./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

License

This project is under Apache v2 License. See the LICENSE file for the full license text.