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

Merge pull request #2468 from antony66/ssdb_cache_fix_is_exist

Fixes issue #2467 with ssdb cache IsExist
This commit is contained in:
astaxie 2017-02-27 18:58:53 +08:00 committed by GitHub
commit 3d629e7320

2
cache/ssdb/ssdb.go vendored
View File

@ -152,7 +152,7 @@ func (rc *Cache) IsExist(key string) bool {
if err != nil { if err != nil {
return false return false
} }
if resp[1] == "1" { if len(resp) == 2 && resp[1] == "1" {
return true return true
} }
return false return false