Skip to content

Commit aee9b1a

Browse files
committed
Update notes
1 parent 0067037 commit aee9b1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (c *cache) Set(k string, x interface{}, d time.Duration) {
7474
// adds ~200 ns (as of go1.)
7575
c.mu.Unlock()
7676

77-
// try to call onEvicted if key existed before but the item.Object was replaced
77+
// try to call onEvicted if key existed before but it was expired before cleanup
7878
if evicted && item.Expired() {
7979
c.onEvicted(k, item.Object)
8080
}

0 commit comments

Comments
 (0)