修改了RedisConn結構體為json配置體
This commit is contained in:
parent
d2c7fc3bcf
commit
a636ca67d9
@ -18,10 +18,10 @@ var (
|
||||
|
||||
// redis连接结构体
|
||||
type RedisConn struct {
|
||||
Addr string
|
||||
Port int
|
||||
Password string
|
||||
DB int
|
||||
Addr string `json:"addr"`
|
||||
Port int `json:"port"`
|
||||
Password string `json:"password"`
|
||||
DB int `json:"db"`
|
||||
}
|
||||
|
||||
// redis连接参数默认值
|
||||
|
Loading…
Reference in New Issue
Block a user