MCPcopy Index your code
hub / github.com/golang/groupcache / removeOldest

Method removeOldest

groupcache.go:451–457  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

449}
450
451func (c *cache) removeOldest() {
452 c.mu.Lock()
453 defer c.mu.Unlock()
454 if c.lru != nil {
455 c.lru.RemoveOldest()
456 }
457}
458
459func (c *cache) bytes() int64 {
460 c.mu.RLock()

Callers 1

populateCacheMethod · 0.80

Calls 1

RemoveOldestMethod · 0.80

Tested by

no test coverage detected