Commit 3d629e73 authored by astaxie's avatar astaxie Committed by GitHub

Merge pull request #2468 from antony66/ssdb_cache_fix_is_exist

Fixes issue #2467 with ssdb cache IsExist
parents 50e294be 74045090
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment