case-api/config/redis.go
2025-03-07 16:57:28 +08:00

10 lines
508 B
Go

package config
type Redis struct {
Host string `mapstructure:"host" json:"host" yaml:"host"` // 服务器地址
Port int `mapstructure:"port" json:"port" yaml:"port"` // 服务器端口
Password string `mapstructure:"password" json:"password" yaml:"password"` // 密码
PoolSize int `mapstructure:"pool-size" json:"pool-size" yaml:"pool-size"` // 连接池大小
Db int `mapstructure:"db" json:"db" yaml:"db"` // 数据库
}