Derrick
Inspect Redis databases and print statistics about the keys
Installation
$ gem install derrick
Usage
$ derrick inspect redis://127.0.0.1:6379/5
It will print something like this:
Pattern Count Exp Type
shop:*:name 10000 100% string
shop:*:id 10000 0% string
shop:*:versions 2 0% string: 50%,hash: 50%
sorted_set:*:product_types 1 0% zset
You can also configure the concurrency level and batch size:
$ derrick inspect --concurrency 4 --batch-size 100000 redis://127.0.0.1:6379/5
Contributing
- Fork it ( https://github.com/[my-github-username]/derrick/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request