sm
/
cache
1
0
Fork 0

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

This commit is contained in:
Patrick Mylund Nielsen 2013-08-08 14:54:03 -04:00
parent fd89281dfd
commit e91e36d111
1 changed files with 1 additions and 1 deletions

View File

@ -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)