feat(groupcache.go): adding duration hardcoded at 60 minutes, will need to parameterize this

This commit is contained in:
censhin 2021-04-30 02:22:05 -04:00
parent 7b47233b4b
commit fa896fa6c1

View File

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