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

add unconverted support

This commit is contained in:
Sergey Lanzman
2017-03-17 19:45:30 +02:00
parent 21d1267c14
commit 856fde28dc
9 changed files with 25 additions and 29 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
}
@ -175,7 +175,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 {