Skip to content

Commit 2700a2e

Browse files
author
XieBiao
committed
binary file usage
1 parent db8601b commit 2700a2e

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,28 @@ Redis memory analysis
33

44
🔎 Analyzing memory of redis is to find the keys(prefix) which used a lot of memory, export the analysis result into csv file.
55

6-
## Usage
6+
## Binary File Usage
7+
8+
1. Download the appropriate binary file from [Releases](https://github.com/hhxsv5/go-redis-memory-analysis/releases)
9+
10+
2. Run
11+
12+
```Shell
13+
./redis-memory-analysis-linux-amd64 -h
14+
Usage of ./redis-memory-analysis-darwin-amd64:
15+
-ip string
16+
The host of redis (default "127.0.0.1")
17+
-password string
18+
The password of redis
19+
-port uint
20+
The port of redis (default 6379)
21+
-prefixes string
22+
The prefixes list of redis key, be split by ',', special pattern characters need to escape by '\' (default "#,:")
23+
-reportPath string
24+
The csv file path of analysis result (default "./reports")
25+
```
26+
27+
## Source Code Usage
728

829
1. Install
930

0 commit comments

Comments
 (0)