1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 18:10:55 +00:00

fix GetMulti bug

This commit is contained in:
liuchun 2016-03-06 14:46:13 +08:00
parent 292d8f2c00
commit 48ec7f736e

3
cache/ssdb/ssdb.go vendored
View File

@ -50,8 +50,9 @@ func (rc *Cache) GetMulti(keys []string) []interface{} {
}
}
res, err := rc.conn.Do("multi_get", keys)
res_size := len(res)
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]))
}
return values