mirror of
https://github.com/gofiber/storage.git
synced 2025-12-18 16:28:22 +08:00
Fix default host:port value
This commit is contained in:
@@ -61,7 +61,7 @@ store := rueidis.New(rueidis.Config{
|
||||
|
||||
// Initialize Rueidis Cluster Client
|
||||
store := rueidis.New(rueidis.Config{
|
||||
InitAddress: []string{":6379", ":6380"},
|
||||
InitAddress: []string{":6379", ":6380"},
|
||||
})
|
||||
|
||||
// Create a client with support for TLS
|
||||
@@ -71,16 +71,16 @@ if err != nil {
|
||||
return
|
||||
}
|
||||
tlsCfg := &tls.Config{
|
||||
MinVersion: tls.VersionTLS12,
|
||||
InsecureSkipVerify: true,
|
||||
Certificates: []tls.Certificate{cer},
|
||||
MinVersion: tls.VersionTLS12,
|
||||
InsecureSkipVerify: true,
|
||||
Certificates: []tls.Certificate{cer},
|
||||
}
|
||||
store = rueidis.New(rueidis.Config{
|
||||
InitAddress: []string{"localhost:6380"},
|
||||
Username: "<user>",
|
||||
Password: "<password>",
|
||||
SelectDB: 0,
|
||||
TLSConfig: tlsCfg,
|
||||
SelectDB: 0,
|
||||
TLSConfig: tlsCfg,
|
||||
})
|
||||
|
||||
```
|
||||
@@ -182,7 +182,7 @@ var ConfigDefault = Config{
|
||||
Password: "",
|
||||
ClientName: "",
|
||||
SelectDB: 0,
|
||||
InitAddress: []string{},
|
||||
InitAddress: []string{"127.0.0.1:6379"},
|
||||
TLSConfig: nil,
|
||||
CacheSizeEachConn: rueidis.DefaultCacheBytes,
|
||||
RingScaleEachConn: rueidis.DefaultRingScale,
|
||||
|
||||
@@ -101,7 +101,7 @@ var ConfigDefault = Config{
|
||||
Password: "",
|
||||
ClientName: "",
|
||||
SelectDB: 0,
|
||||
InitAddress: []string{},
|
||||
InitAddress: []string{"127.0.0.1:6379"},
|
||||
TLSConfig: nil,
|
||||
CacheSizeEachConn: rueidis.DefaultCacheBytes,
|
||||
RingScaleEachConn: rueidis.DefaultRingScale,
|
||||
|
||||
Reference in New Issue
Block a user