You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
528 B
12 lines
528 B
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键前缀
|
|
}
|
|
|