From e91e36d1118cf30544bcd5b5783168c219069330 Mon Sep 17 00:00:00 2001 From: Patrick Mylund Nielsen Date: Thu, 8 Aug 2013 14:54:03 -0400 Subject: [PATCH] ItemCount() is equivalent to len(c.Items()), not len(c.Items) --- cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache.go b/cache.go index b051359..2278a1d 100644 --- a/cache.go +++ b/cache.go @@ -944,7 +944,7 @@ func (c *cache) Items() map[string]*Item { } // Returns the number of items in the cache. This may include items that have -// expired, but have not yet been cleaned up. Equivalent to len(c.Items). +// expired, but have not yet been cleaned up. Equivalent to len(c.Items()). func (c *cache) ItemCount() int { c.RLock() n := len(c.items)