We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0067037 commit aee9b1aCopy full SHA for aee9b1a
1 file changed
cache.go
@@ -74,7 +74,7 @@ func (c *cache) Set(k string, x interface{}, d time.Duration) {
74
// adds ~200 ns (as of go1.)
75
c.mu.Unlock()
76
77
- // 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
78
if evicted && item.Expired() {
79
c.onEvicted(k, item.Object)
80
}
0 commit comments