MCPcopy Create free account
hub / github.com/libgit2/git2go / SetCacheMaxSize

Function SetCacheMaxSize

settings.go:121–123  ·  view source on GitHub ↗
(maxSize int)

Source from the content-addressed store, hash-verified

119}
120
121func SetCacheMaxSize(maxSize int) error {
122 return setSizet(C.GIT_OPT_SET_CACHE_MAX_SIZE, maxSize)
123}
124
125func SetCacheObjectLimit(objectType ObjectType, size int) error {
126 runtime.LockOSThread()

Callers 1

TestSetCacheMaxSizeFunction · 0.85

Calls 1

setSizetFunction · 0.85

Tested by 1

TestSetCacheMaxSizeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…