Skip to content

Commit 69c1d0c

Browse files
committed
Update readme
1 parent b7b7096 commit 69c1d0c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Readme.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ Usage of ./bin/redis-dump-go:
3131
Server host (default "127.0.0.1")
3232
-n int
3333
Parallel workers (default 10)
34+
-noscan
35+
Use KEYS * instead of SCAN - for Redis <=2.8
3436
-output string
3537
Output type - can be resp or commands (default "resp")
3638
-port int
@@ -43,7 +45,7 @@ Database 0: 9 element dumped
4345
Database 1: 1 element dumped
4446
```
4547

46-
For password-protected Redis servers, set the shell variable REDISDUMPGO_AUTH:
48+
For password-protected Redis servers, set the shell variable REDISDUMPGO\_AUTH:
4749

4850
```
4951
$ export REDISDUMPGO_AUTH=myRedisPassword

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ func realMain() int {
5151
host := flag.String("host", "127.0.0.1", "Server host")
5252
port := flag.Int("port", 6379, "Server port")
5353
db := flag.Uint("db", 0, "only dump this database (default: all databases)")
54-
filter := flag.String("filter", "*", "key filter to use")
55-
noscan := flag.Bool("noscan", false, "use KEYS * instead of SCAN - for Redis <=2.8")
54+
filter := flag.String("filter", "*", "Key filter to use")
55+
noscan := flag.Bool("noscan", false, "Use KEYS * instead of SCAN - for Redis <=2.8")
5656
nWorkers := flag.Int("n", 10, "Parallel workers")
5757
withTTL := flag.Bool("ttl", true, "Preserve Keys TTL")
5858
output := flag.String("output", "resp", "Output type - can be resp or commands")

0 commit comments

Comments
 (0)