| 15 | ) |
| 16 | |
| 17 | type FileCache struct { |
| 18 | fs afero.Fs |
| 19 | |
| 20 | // granular locks |
| 21 | scopedLocks struct { |
| 22 | sync.Mutex |
| 23 | sync.Once |
| 24 | locks map[string]sync.Locker |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func New(fs afero.Fs, root string) *FileCache { |
| 29 | return &FileCache{ |
nothing calls this directly
no outgoing calls
no test coverage detected