From 5d911472d2768fdd26b04297281d46dc301fcc23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=95=86=E8=AE=AF=E5=9C=A8=E7=BA=BF?= Date: Sat, 16 Aug 2014 20:11:20 +0800 Subject: [PATCH] bugfix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 商讯在线 --- lru_cacher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lru_cacher.go b/lru_cacher.go index a81c4ccc..8c912879 100644 --- a/lru_cacher.go +++ b/lru_cacher.go @@ -24,7 +24,7 @@ type LRUCacher struct { } func NewLRUCacher(store core.CacheStore, maxElementSize int) *LRUCacher { - return NewLRUCacher2(store, 0, maxElementSize) + return NewLRUCacher2(store, 3600*time.Second, maxElementSize) } func NewLRUCacher2(store core.CacheStore, expired time.Duration, maxElementSize int) *LRUCacher {