Closed iwaltgen closed 1 year ago
cache.Add function doesn't update the entry entry.expire if exists an entry. but entry.value already does update.
cache.Add
entry.expire
entry.value
https://github.com/mailgun/groupcache/blob/df5395112d7caeaf6ee14e333953bb563c21b0ba/lru/lru.go#L65-L69
This PR also does update entry.expire.
cache.Add
function doesn't update the entryentry.expire
if exists an entry. butentry.value
already does update.https://github.com/mailgun/groupcache/blob/df5395112d7caeaf6ee14e333953bb563c21b0ba/lru/lru.go#L65-L69
This PR also does update
entry.expire
.