mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 12:40:55 +00:00
fix GetMulti bug
This commit is contained in:
parent
292d8f2c00
commit
48ec7f736e
3
cache/ssdb/ssdb.go
vendored
3
cache/ssdb/ssdb.go
vendored
@ -50,8 +50,9 @@ func (rc *Cache) GetMulti(keys []string) []interface{} {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
res, err := rc.conn.Do("multi_get", keys)
|
res, err := rc.conn.Do("multi_get", keys)
|
||||||
|
res_size := len(res)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
for i := 1; i < size*2; i += 2 {
|
for i := 1; i < res_size; i += 2 {
|
||||||
values = append(values, string(res[i+1]))
|
values = append(values, string(res[i+1]))
|
||||||
}
|
}
|
||||||
return values
|
return values
|
||||||
|
Loading…
Reference in New Issue
Block a user