MCPcopy
hub / github.com/filebrowser/filebrowser / New

Function New

diskcache/file_cache.go:28–32  ·  view source on GitHub ↗
(fs afero.Fs, root string)

Source from the content-addressed store, hash-verified

26}
27
28func New(fs afero.Fs, root string) *FileCache {
29 return &FileCache{
30 fs: afero.NewBasePathFs(fs, root),
31 }
32}
33
34func (f *FileCache) Store(_ context.Context, key string, value []byte) error {
35 mu := f.getScopedLocks(key)

Callers 2

root.goFile · 0.92
TestFileCacheFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestFileCacheFunction · 0.56