This fixes issue #2467 with ssdb cache IsExist

This commit is contained in:
Anton Khalikov 2017-02-27 14:14:16 +05:00
parent b55e20ac60
commit 74045090cc
1 changed files with 1 additions and 1 deletions

2
cache/ssdb/ssdb.go vendored
View File

@ -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