MCPcopy Create free account
hub / github.com/allegro/bigcache / ResetStats

Method ResetStats

bigcache.go:180–185  ·  view source on GitHub ↗

ResetStats resets cache stats

()

Source from the content-addressed store, hash-verified

178
179// ResetStats resets cache stats
180func (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
188func (c *BigCache) Len() int {

Callers 1

TestCacheRestStatsFunction · 0.80

Calls 1

resetStatsMethod · 0.80

Tested by 1

TestCacheRestStatsFunction · 0.64