MCPcopy Index your code
hub / github.com/git-bug/git-bug / GetOldest

Method GetOldest

cache/lru_id_cache.go:24–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 return c.Cache.Add(id, nil)
23}
24func (c *lruIdCache) GetOldest() (entity.Id, bool) {
25 id, _, present := c.Cache.GetOldest()
26 return id, present
27}
28
29func (c *lruIdCache) GetOldestToNewest() (ids []entity.Id) {
30 return c.Keys()

Callers 1

TestCacheEvictionFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestCacheEvictionFunction · 0.64