Len computes number of entries in cache
()
| 186 | |
| 187 | // Len computes number of entries in cache |
| 188 | func (c *BigCache) Len() int { |
| 189 | var len int |
| 190 | for _, shard := range c.shards { |
| 191 | len += shard.len() |
| 192 | } |
| 193 | return len |
| 194 | } |
| 195 | |
| 196 | // Capacity returns amount of bytes store in the cache. |
| 197 | func (c *BigCache) Capacity() int { |