Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ItemCount() is equivalent to len(c.Items()), not len(c.Items)

  • Loading branch information...
commit e91e36d1118cf30544bcd5b5783168c219069330 1 parent fd89281
@pmylund authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cache.go
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.