Skip to content

Filters redis keys on a glob pattern and performs actions on them.

License

Notifications You must be signed in to change notification settings

miklosn/redis-scan-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redis-scan-cli

Filters redis keys on a glob pattern and performs actions on them. Right now, it is only possible to delete the found keys, or print them in verbose mode.

  • Doesn't use the redis KEYS command: safe to use on production systems
  • Handles non-ascii keys

Install

  1. Download a binary for your platform from the releases page.

  2. Make it executable and place it somewhere on PATH.

Usage

Usage: redis-scan-cli [options] <pattern>

Options:
  -V, --version            output the version number
  --host <host>            Redis host (default: 127.0.0.1)
  -p, --port <port>        Redis port (default: 6379)
  -a, --auth <password>    Redis password (default: none)
  -b, --batch <batchsize>  Batch size to use for scan (default 1000)
  -d, --delete             Delete keys found
  -v, --verbose            Set verbose logging
  -h, --help               output usage information

About

Filters redis keys on a glob pattern and performs actions on them.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published