Commit 74045090 authored by Anton Khalikov's avatar Anton Khalikov

This fixes issue #2467 with ssdb cache IsExist

parent b55e20ac
......@@ -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