https://github.com/byroot/derrick
Inspect Redis databases and print statistics about the keys
https://github.com/byroot/derrick
Last synced: about 1 month ago
JSON representation
Inspect Redis databases and print statistics about the keys
- Host: GitHub
- URL: https://github.com/byroot/derrick
- Owner: byroot
- License: mit
- Created: 2014-09-10T15:34:50.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-28T21:44:33.000Z (about 11 years ago)
- Last Synced: 2026-01-01T23:19:56.545Z (5 months ago)
- Language: Ruby
- Size: 160 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Derrick
Inspect Redis databases and print statistics about the keys
## Installation
```shell
$ gem install derrick
```
## Usage
```shell
$ 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:
```shell
$ derrick inspect --concurrency 4 --batch-size 100000 redis://127.0.0.1:6379/5
```
## Contributing
1. Fork it ( https://github.com/[my-github-username]/derrick/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request