Commit 2cebb28a by huangchengyi

1.0

parent 12e1b401
Showing with 10 additions and 7 deletions
......@@ -2,15 +2,15 @@
[default_redis_read]
host = 192.168.1.235:6379
password = icDb29mLy2s
max_idle = 5000
max_active = 5000
max_idle = 20000
max_active = 20000
idle_timeout = 20
[default_redis_write]
host = 192.168.1.235:6379
password = icDb29mLy2s
max_idle = 5000
max_active = 5000
max_idle = 20000
max_active = 20000
idle_timeout = 20
;存放redis所有键
......
......@@ -83,9 +83,12 @@ func Hmget(redisCon string, hkey string, targetIds []string) map[string]string {
param = append(param, goods_id)
}
res1,err := redisConn.Do("hmget",param...)
reply, err := redis.Strings(res1,err)
//fmt.Println(reply)
res1,err1 := redisConn.Do("hmget",param...)
reply, _ := redis.Strings(res1,err1)
if err1 != nil {
fmt.Println(err1)
}
for k, goodsInfo := range reply {
skuArr[targetIds[k]] = goodsInfo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment