Sha256: a41c0e583458f0ac09a6f213155cb2a9509acf89db0ff3d5f5fc13b3ce1f3469

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 KB

Contents

# RedisScanner

RedisScanner is a tiny tool for scanning all redis keys and creating statistic result. The features are the followings.

* Scans keys using *scan* replacing *keys* command.
* Creates statistic result by key's pattern.

## Installation

Install redis_scanner in shell.

```shell
gem install redis_scanner
```

*Installation prerequirement*

You should install [ruby](https://www.ruby-lang.org/) first.

## Usage

* Get started

You can run it directly after install. It will scan local redis instance when you just input *redis_scanner*.

```shell
redis_scanner
```

The Output is like this:

```shell
=========result is=========
demo:user:<id>:counter 10000
u:<uuid>:pf 52
sidekiq_demo:stat:failed:<date> 4
sidekiq_demo:stat:processed:<date> 4
_sp_one:queue:default 1
bh:queues 1
bh:retry 1
bh:stat:failed 1
bh:stat:processed 1
bus_app:app_two 1
...
===========================
```

* Scan keys with some pattern

```shell
redis_scanner -m u:*
```

* Output statistic result to a file

```shell
redis_scanner -f keys_stat.txt
```

* Redis options. The options are same of redis-cli.

```shell
redis_scanner -h <host> -p <port> ...
```

## Development

You are free to modify it for your need.

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/xiewenwei/redis_scanner. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redis_scanner-0.1.2 README.md