2020-10-06 11:30:50 +08:00
|
|
|
package config
|
|
|
|
|
|
|
|
type Redis struct {
|
2021-05-14 11:33:14 +08:00
|
|
|
DB int `mapstructure:"db" json:"db" yaml:"db"` // redis的哪个数据库
|
2021-04-30 14:14:00 +08:00
|
|
|
Addr string `mapstructure:"addr" json:"addr" yaml:"addr"` // 服务器地址:端口
|
|
|
|
Password string `mapstructure:"password" json:"password" yaml:"password"` // 密码
|
2021-04-04 21:32:23 +08:00
|
|
|
}
|