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

Function newLRUIdCache

cache/lru_id_cache.go:15–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15func newLRUIdCache() lruIdCache {
16 // we can ignore the error here as it would only fail if the size is negative.
17 cache, _ := lru.New[entity.Id, *struct{}](math.MaxInt32)
18 return lruIdCache{Cache: cache}
19}
20
21func (c *lruIdCache) Add(id entity.Id) bool {
22 return c.Cache.Add(id, nil)

Callers 1

NewSubCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected