package config

type Redis struct {
	DB         int    `mapstructure:"db" json:"db" yaml:"db"`                   // redis的哪个数据库
	Addr       string `mapstructure:"addr" json:"addr" yaml:"addr"`             // 服务器地址:端口
	Password   string `mapstructure:"password" json:"password" yaml:"password"` // 密码
	MasterName string `mapstructure:"master_name" json:"master_name" yaml:"master_name"`
	RedisType  string `mapstructure:"redis_type" json:"redis_type" yaml:"redis_type"` // redis为本机redis模式，sentinel为redis集群哨兵模式
	MaxIdle    int    `mapstructure:"max_idle" json:"max_idle" yaml:"max_idle"`       // redisPool数量
}
