MCPcopy
hub / github.com/go-git/go-git / NewObjectLRUDefault

Function NewObjectLRUDefault

plumbing/cache/object_lru.go:28–30  ·  view source on GitHub ↗

NewObjectLRUDefault creates a new ObjectLRU with the default cache size.

()

Source from the content-addressed store, hash-verified

26
27// NewObjectLRUDefault creates a new ObjectLRU with the default cache size.
28func NewObjectLRUDefault() *ObjectLRU {
29 return &ObjectLRU{MaxSize: DefaultMaxSize}
30}
31
32// Put puts an object into the cache. If the object is already in the cache, it
33// will be marked as used. Otherwise, it will be inserted. A single object might

Callers 15

testPruneMethod · 0.92
TestBranchesMethod · 0.92
TestResolveRevisionMethod · 0.92
testRepackObjectsMethod · 0.92
BenchmarkObjectsFunction · 0.92
PlainInitWithOptionsFunction · 0.92

Calls

no outgoing calls

Tested by 15

testPruneMethod · 0.74
TestBranchesMethod · 0.74
TestResolveRevisionMethod · 0.74
testRepackObjectsMethod · 0.74
BenchmarkObjectsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…