From bdde879238015c919db0418612b755b350888c33 Mon Sep 17 00:00:00 2001 From: linwenxiang <991154416@qq.com> Date: Thu, 6 Aug 2020 00:25:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9connect=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/cache/type.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cache/type.go b/pkg/cache/type.go index bfe671da..1ec34acf 100644 --- a/pkg/cache/type.go +++ b/pkg/cache/type.go @@ -5,7 +5,7 @@ import ( ) type Adapter interface { - Connect() + Connect() error Get(key string) (string, error) Set(key string, val interface{}, expire int) error Del(key string) error