2025-03-06 13:30:24 +08:00
|
|
|
package config
|
|
|
|
|
|
|
|
|
|
type Redis struct {
|
|
|
|
|
Host string `mapstructure:"host"`
|
|
|
|
|
Port string `mapstructure:"port"`
|
|
|
|
|
DB int `mapstructure:"db"`
|
|
|
|
|
Username string `mapstructure:"username"`
|
|
|
|
|
Password string `mapstructure:"password"`
|
2025-04-23 19:09:24 +08:00
|
|
|
SSL bool `mapstructure:"ssl"`
|
2025-03-06 13:30:24 +08:00
|
|
|
Debug bool `mapstructure:"debug"`
|
|
|
|
|
MaxIdleConnectionsInSecond int `mapstructure:"max-idle-connections-in-second"`
|
|
|
|
|
MaxOpenConnectionsInSecond int `mapstructure:"max-open-connections-in-second"`
|
|
|
|
|
ConnectionMaxLifetimeInSecond int64 `mapstructure:"connection-max-life-time-in-second"`
|
|
|
|
|
}
|