@@ -22,31 +22,31 @@ type Config struct {
2222 // DB to be selected after connecting to the server, 0 uses the default
2323 DB int `json:"db" koanf:"db" default:"0"`
2424 // Dial timeout for establishing new connections, defaults to 5s
25- DialTimeout time.Duration `json:"dialTimeout " koanf:"dialTimeout " default:"5s"`
25+ DialTimeout time.Duration `json:"dialtimeout " koanf:"dialtimeout " default:"5s"`
2626 // Timeout for socket reads. If reached, commands will fail
2727 // with a timeout instead of blocking. Supported values:
2828 // - `0` - default timeout (3 seconds).
2929 // - `-1` - no timeout (block indefinitely).
3030 // - `-2` - disables SetReadDeadline calls completely.
31- ReadTimeout time.Duration `json:"readTimeout " koanf:"readTimeout " default:"0"`
31+ ReadTimeout time.Duration `json:"readtimeout " koanf:"readtimeout " default:"0"`
3232 // Timeout for socket writes. If reached, commands will fail
3333 // with a timeout instead of blocking. Supported values:
3434 // - `0` - default timeout (3 seconds).
3535 // - `-1` - no timeout (block indefinitely).
3636 // - `-2` - disables SetWriteDeadline calls completely.
37- WriteTimeout time.Duration `json:"writeTimeout " koanf:"writeTimeout " default:"0"`
37+ WriteTimeout time.Duration `json:"writetimeout " koanf:"writetimeout " default:"0"`
3838 // MaxRetries before giving up.
3939 // Default is 3 retries; -1 (not 0) disables retries.
40- MaxRetries int `json:"maxRetries " koanf:"maxRetries " default:"3"`
40+ MaxRetries int `json:"maxretries " koanf:"maxretries " default:"3"`
4141 // MinIdleConns is useful when establishing new connection is slow.
4242 // Default is 0. the idle connections are not closed by default.
43- MinIdleConns int `json:"minIdleConns " koanf:"minIdleConns " default:"0"`
43+ MinIdleConns int `json:"minidleconns " koanf:"minidleconns " default:"0"`
4444 // Maximum number of idle connections.
4545 // Default is 0. the idle connections are not closed by default.
46- MaxIdleConns int `json:"maxIdleConns " koanf:"maxIdleConns " default:"0"`
46+ MaxIdleConns int `json:"maxidleconns " koanf:"maxidleconns " default:"0"`
4747 // Maximum number of connections allocated by the pool at a given time.
4848 // When zero, there is no limit on the number of connections in the pool.
49- MaxActiveConns int `json:"maxActiveConns " koanf:"maxActiveConns " default:"0"`
49+ MaxActiveConns int `json:"maxactiveconns " koanf:"maxactiveconns " default:"0"`
5050}
5151
5252// New returns a new redis client based on the configuration settings
0 commit comments