mirror of https://github.com/astaxie/beego.git
Merge pull request #2468 from antony66/ssdb_cache_fix_is_exist
Fixes issue #2467 with ssdb cache IsExist
This commit is contained in:
commit
3d629e7320
|
@ -152,7 +152,7 @@ func (rc *Cache) IsExist(key string) bool {
|
|||
if err != nil {
|
||||
return false
|
||||
}
|
||||
if resp[1] == "1" {
|
||||
if len(resp) == 2 && resp[1] == "1" {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
|
Loading…
Reference in New Issue