mirror of
https://github.com/mailgun/groupcache.git
synced 2024-09-28 23:00:56 +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 {
|
if c.lru == nil {
|
||||||
return
|
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) {
|
func (c *cache) remove(key string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user