MCPcopy Create free account
hub / github.com/git-bug/git-bug / SetCacheSize

Method SetCacheSize

cache/subcache.go:322–325  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

320}
321
322func (sc *SubCache[EntityT, ExcerptT, CacheT]) SetCacheSize(size int) {
323 sc.maxLoaded = size
324 sc.evictIfNeeded()
325}
326
327func (sc *SubCache[EntityT, ExcerptT, CacheT]) Close() error {
328 sc.mu.Lock()

Callers

nothing calls this directly

Calls 1

evictIfNeededMethod · 0.95

Tested by

no test coverage detected