https://github.com/elliotchance/redis-usage
👁️ A non-blocking way to count the number of keys or size of Redis key prefixes
https://github.com/elliotchance/redis-usage
Last synced: 6 months ago
JSON representation
👁️ A non-blocking way to count the number of keys or size of Redis key prefixes
- Host: GitHub
- URL: https://github.com/elliotchance/redis-usage
- Owner: elliotchance
- License: mit
- Created: 2018-06-25T01:36:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-15T17:29:06.000Z (about 5 years ago)
- Last Synced: 2025-03-29T23:41:11.771Z (7 months ago)
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 32
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A non-blocking way to count the number of keys or size of Redis key prefixes.
```
Usage of ./redis-usage:
-count int
SCAN COUNT option. (default 10)
-db int
Redis server database.
-dump-limit int
Use DUMP to get key sizes (much slower). If this is zero then DUMP will not be used, otherwise it will take N sizes for each prefix to calculate an average bytes for that key prefix. If you want to measure the sizes for all keys set this to a very large number.
-host string
Redis server host. (default "localhost")
-password string
Redis server password. (default: "")
-limit int
Limit the number of keys scanned.
-match string
SCAN MATCH option.
-port int
Redis server port number. (default 6379)
-prefixes string
You may specify custom prefixes (comma-separated).
-separator string
Seperator for grouping. (default ":")
-sleep int
Number of milliseconds to wait between reading keys.
-timeout int
Milliseconds for timeout (default 3000)
-top int
Only show the top number of prefixes.
```