1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-11 04:30:39 +00:00

Merge branch 'develop' into add-gosimple

This commit is contained in:
astaxie
2017-03-18 11:20:30 +08:00
committed by GitHub
9 changed files with 27 additions and 31 deletions

4
cache/ssdb/ssdb.go vendored
View File

@ -53,7 +53,7 @@ func (rc *Cache) GetMulti(keys []string) []interface{} {
resSize := len(res)
if err == nil {
for i := 1; i < resSize; i += 2 {
values = append(values, string(res[i+1]))
values = append(values, res[i+1])
}
return values
}
@ -169,7 +169,7 @@ func (rc *Cache) ClearAll() error {
}
keys := []string{}
for i := 1; i < size; i += 2 {
keys = append(keys, string(resp[i]))
keys = append(keys, resp[i])
}
_, e := rc.conn.Do("multi_del", keys)
if e != nil {