From 74045090cc834b4b13587a210ed92d7a188a2c1c Mon Sep 17 00:00:00 2001 From: Anton Khalikov Date: Mon, 27 Feb 2017 14:14:16 +0500 Subject: [PATCH] This fixes issue #2467 with ssdb cache IsExist --- cache/ssdb/ssdb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/ssdb/ssdb.go b/cache/ssdb/ssdb.go index bfee69ce..bbc43606 100644 --- a/cache/ssdb/ssdb.go +++ b/cache/ssdb/ssdb.go @@ -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