Signed-off-by: 商讯在线 <swhbox@foxmail.com>
This commit is contained in:
商讯在线 2014-08-16 20:11:20 +08:00
parent f33ed5b947
commit 5d911472d2
1 changed files with 1 additions and 1 deletions

View File

@ -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 {