mirror of
https://github.com/gofiber/storage.git
synced 2025-09-28 13:22:18 +08:00
Update README.md
This commit is contained in:
@@ -86,15 +86,15 @@ tlsCfg := &tls.Config{
|
|||||||
Certificates: []tls.Certificate{cer},
|
Certificates: []tls.Certificate{cer},
|
||||||
}
|
}
|
||||||
store = redis.New(redis.Config{
|
store = redis.New(redis.Config{
|
||||||
URL: "redis://<user>:<pass>@127.0.0.1:6379/<db>",
|
URL: "redis://<user>:<pass>@127.0.0.1:6379/<db>",
|
||||||
TLSConfig: tlsCfg,
|
TLSConfig: tlsCfg,
|
||||||
Reset: false,
|
Reset: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
// Create a client with a Redis URL with all information.
|
// Create a client with a Redis URL with all information.
|
||||||
store = redis.New(redis.Config{
|
store = redis.New(redis.Config{
|
||||||
URL: "redis://<user>:<pass>@127.0.0.1:6379/<db>",
|
URL: "redis://<user>:<pass>@127.0.0.1:6379/<db>",
|
||||||
Reset: false,
|
Reset: false,
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user