mirror of
https://github.com/mailgun/groupcache.git
synced 2024-11-16 14:10:04 +00:00
feat(groupcache.go): adding duration hardcoded at 60 minutes, will need to parameterize this
This commit is contained in:
parent
7b47233b4b
commit
fa896fa6c1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user