mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:40:55 +00:00
This fixes issue #2467 with ssdb cache IsExist
This commit is contained in:
parent
b55e20ac60
commit
74045090cc
2
cache/ssdb/ssdb.go
vendored
2
cache/ssdb/ssdb.go
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user