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

Method setCacheSize

cache/repo_cache.go:155–159  ·  view source on GitHub ↗

setCacheSize change the maximum number of loaded bugs

(size int)

Source from the content-addressed store, hash-verified

153
154// setCacheSize change the maximum number of loaded bugs
155func (c *RepoCache) setCacheSize(size int) {
156 for _, subcache := range c.subcaches {
157 subcache.SetCacheSize(size)
158 }
159}
160
161// load will try to read from the disk all the cache files
162func (c *RepoCache) load() error {

Callers 1

TestCacheEvictionFunction · 0.80

Calls 1

SetCacheSizeMethod · 0.65

Tested by 1

TestCacheEvictionFunction · 0.64