MCPcopy Create free account
hub / github.com/dearcode/candy / close

Method close

store/file.go:68–72  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

66}
67
68func (f *fileDB) close(name string) {
69 if c, ok := f.cache[name]; ok {
70 c.last = time.Now().Add(closeInterval)
71 }
72}
73
74func (f *fileDB) open(name string) (file *os.File, err error) {
75 c, ok := f.cache[name]

Callers 1

isFullMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected