|
|
@ -336,7 +336,8 @@ type Redis struct {
|
|
|
|
Password string `mapstructure:"password"`
|
|
|
|
Password string `mapstructure:"password"`
|
|
|
|
ClusterMode bool `mapstructure:"clusterMode"`
|
|
|
|
ClusterMode bool `mapstructure:"clusterMode"`
|
|
|
|
DB int `mapstructure:"storage"`
|
|
|
|
DB int `mapstructure:"storage"`
|
|
|
|
MaxRetry int `mapstructure:"MaxRetry"`
|
|
|
|
MaxRetry int `mapstructure:"maxRetry"`
|
|
|
|
|
|
|
|
PoolSize int `mapstructure:"poolSize"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type BeforeConfig struct {
|
|
|
|
type BeforeConfig struct {
|
|
|
@ -474,6 +475,7 @@ func (r *Redis) Build() *redisutil.Config {
|
|
|
|
Password: r.Password,
|
|
|
|
Password: r.Password,
|
|
|
|
DB: r.DB,
|
|
|
|
DB: r.DB,
|
|
|
|
MaxRetry: r.MaxRetry,
|
|
|
|
MaxRetry: r.MaxRetry,
|
|
|
|
|
|
|
|
PoolSize: r.PoolSize,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|