Skip to content

Commit

Permalink
Fix doc of SizeStats.Capacity regarding map backend
Browse files Browse the repository at this point in the history
  • Loading branch information
motoki317 committed Apr 12, 2024
1 parent 7ec5515 commit f6f4ded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ type SizeStats struct {
Size int
// Capacity is the maximum number of allowed items in the cache.
//
// Note that, for map backend, there is no upper bound in number of items in the cache;
// Capacity only represents the current cap() of the map.
// Note that, for map backend, there is no upper bound in number of items in the cache.
// Therefore, Capacity is always -1 for map backend.
Capacity int
}

Expand Down

0 comments on commit f6f4ded

Please sign in to comment.