Skip to content

Commit 9e6d911

Browse files
committed
Add 'inlining of expired' note to Items()
1 parent a2d8b56 commit 9e6d911

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cache.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,7 @@ func (c *cache) Items() map[string]Item {
10051005
m := make(map[string]Item, len(c.items))
10061006
now := time.Now().UnixNano()
10071007
for k, v := range c.items {
1008+
// "Inlining" of Expired
10081009
if v.Expiration > 0 {
10091010
if now > v.Expiration {
10101011
continue

0 commit comments

Comments
 (0)