From e513da007fb9ef9f4f9cc4d4d6fedff5e28b78b3 Mon Sep 17 00:00:00 2001 From: john Date: Tue, 18 Sep 2018 09:45:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E8=B0=83=E8=AF=95=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- g/os/gcache/gcache.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/g/os/gcache/gcache.go b/g/os/gcache/gcache.go index 18f9f4558..5ac21c7ca 100644 --- a/g/os/gcache/gcache.go +++ b/g/os/gcache/gcache.go @@ -13,8 +13,7 @@ const ( ) // 全局缓存管理对象 -//var cache = New() -var cache = (*Cache)(nil) +var cache = New() // (使用全局KV缓存对象)设置kv缓存键值对,过期时间单位为**毫秒** func Set(key interface{}, value interface{}, expire int) {