MCPcopy
hub / github.com/git-lfs/git-lfs / NewLockCache

Function NewLockCache

locking/cache.go:20–26  ·  view source on GitHub ↗
(filepath string)

Source from the content-addressed store, hash-verified

18}
19
20func NewLockCache(filepath string) (*LockCache, error) {
21 kv, err := kv.NewStore(filepath)
22 if err != nil {
23 return nil, err
24 }
25 return &LockCache{kv}, nil
26}
27
28// Cache a successful lock for faster local lookup later
29func (c *LockCache) Add(l Lock) error {

Callers 2

SetupFileCacheMethod · 0.85
TestLockCacheFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestLockCacheFunction · 0.68