@@ -121,6 +121,9 @@ func withoutSensitiveInfo(config *Config) *Config {
121121 if len (c .Caches [i ].Redis .Password ) > 0 {
122122 c .Caches [i ].Redis .Password = pswPlaceHolder
123123 }
124+ if len (c .Caches [i ].Redis .SentinelPassword ) > 0 {
125+ c .Caches [i ].Redis .SentinelPassword = pswPlaceHolder
126+ }
124127 }
125128 return c
126129}
@@ -966,12 +969,15 @@ type RedisCacheConfig struct {
966969 TLS `yaml:",inline"`
967970 EnableTLS bool `yaml:"enable_tls,omitempty"`
968971
969- Username string `yaml:"username,omitempty"`
970- Password string `yaml:"password,omitempty"`
971- Addresses []string `yaml:"addresses"`
972- DBIndex int `yaml:"db_index,omitempty"`
973- PoolSize int `yaml:"pool_size,omitempty"`
974- XXX map [string ]interface {} `yaml:",inline"`
972+ Username string `yaml:"username,omitempty"`
973+ Password string `yaml:"password,omitempty"`
974+ Addresses []string `yaml:"addresses"`
975+ DBIndex int `yaml:"db_index,omitempty"`
976+ PoolSize int `yaml:"pool_size,omitempty"`
977+ SentinelUsername string `yaml:"sentinel_username,omitempty"`
978+ SentinelPassword string `yaml:"sentinel_password,omitempty"`
979+ MasterName string `yaml:"master_name,omitempty"`
980+ XXX map [string ]interface {} `yaml:",inline"`
975981}
976982
977983// UnmarshalYAML implements the yaml.Unmarshaler interface.
0 commit comments