Skip to content

Commit

Permalink
Update notes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimem88 committed Oct 14, 2020
1 parent 0067037 commit aee9b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (c *cache) Set(k string, x interface{}, d time.Duration) {
// adds ~200 ns (as of go1.)
c.mu.Unlock()

// try to call onEvicted if key existed before but the item.Object was replaced
// try to call onEvicted if key existed before but it was expired before cleanup
if evicted && item.Expired() {
c.onEvicted(k, item.Object)
}
Expand Down

0 comments on commit aee9b1a

Please sign in to comment.