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"` // 密码 } type RedisPrefixStr struct { PreFix string `mapstructure:"prefix" json:"prefix" yaml:"prefix"` // redis键前缀 Alias string `mapstructure:"alias" json:"alias" yaml:"alias"` // redis键前缀 }