Skip to content

Commit

Permalink
feat(documentation): Replace go-redis configuration by rueidis
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweak committed Mar 5, 2024
1 parent aebacf3 commit 9656f81
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,29 +317,16 @@ redis-url.com {
}
}
```

You can also use the configuration. Refer to the [rueidis client options](https://github.com/redis/rueidis/blob/main/rueidis.go#L56) to define your config as key value.
```
redis-configuration.com {
cache {
redis {
configuration {
Network my-network
Addr 127.0.0.1:6379
Username user
Password password
DB 1
MaxRetries 1
MinRetryBackoff 5s
MaxRetryBackoff 5s
DialTimeout 5s
ReadTimeout 5s
WriteTimeout 5s
PoolFIFO true
PoolSize 99999
PoolTimeout 10s
MinIdleConns 100
MaxIdleConns 100
ConnMaxIdleTime 5s
ConnMaxLifetime 5s
ClientName souin-redis
InitAddress 127.0.0.1:6379
SelectDB 0
}
}
}
Expand Down

0 comments on commit 9656f81

Please sign in to comment.