From 9e6d9117e747d8a136ae985ebcc46fbe4c293198 Mon Sep 17 00:00:00 2001 From: Patrick Mylund Nielsen Date: Fri, 25 Nov 2016 13:57:39 -0500 Subject: [PATCH] Add 'inlining of expired' note to Items() --- cache.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cache.go b/cache.go index 4eab3d0..8c440d4 100644 --- a/cache.go +++ b/cache.go @@ -1005,6 +1005,7 @@ func (c *cache) Items() map[string]Item { m := make(map[string]Item, len(c.items)) now := time.Now().UnixNano() for k, v := range c.items { + // "Inlining" of Expired if v.Expiration > 0 { if now > v.Expiration { continue