ResetStats resets cache stats
()
| 178 | |
| 179 | // ResetStats resets cache stats |
| 180 | func (c *BigCache) ResetStats() error { |
| 181 | for _, shard := range c.shards { |
| 182 | shard.resetStats() |
| 183 | } |
| 184 | return nil |
| 185 | } |
| 186 | |
| 187 | // Len computes number of entries in cache |
| 188 | func (c *BigCache) Len() int { |