Update README.md

This commit is contained in:
RW
2023-09-26 15:14:55 +02:00
committed by GitHub
parent 807d903176
commit a8098ce577

View File

@@ -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,
}) })
``` ```