From fa896fa6c1e9a6161ed23112b6caad83b8b0909c Mon Sep 17 00:00:00 2001 From: censhin Date: Fri, 30 Apr 2021 02:22:05 -0400 Subject: [PATCH] feat(groupcache.go): adding duration hardcoded at 60 minutes, will need to parameterize this --- groupcache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groupcache.go b/groupcache.go index 143f6a0..9a4f5fd 100644 --- a/groupcache.go +++ b/groupcache.go @@ -640,7 +640,7 @@ func (c *cache) set(key string, value interface{}) { if c.lru == nil { return } - c.lru.Add(key, value, ) // TODO: add duration + c.lru.Add(key, value, time.Now().Add(60*time.Minute)) // TODO: parameterize this } func (c *cache) remove(key string) {