From 6c56a73b69f64e0e2199372bbd293db10ec48f4f Mon Sep 17 00:00:00 2001 From: astaxie Date: Mon, 22 Apr 2013 21:49:34 +0800 Subject: [PATCH] check expird second --- cache/memory.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/memory.go b/cache/memory.go index 3e24b948..7097759d 100644 --- a/cache/memory.go +++ b/cache/memory.go @@ -110,7 +110,7 @@ func (bc *MemoryCache) vaccuum() { return } for { - <-time.After(time.Duration(bc.dur)) + <-time.After(time.Duration(bc.dur) * time.Second) if bc.items == nil { return }