Provider cache implementation of cacheProvider
| 15 | |
| 16 | // Provider cache implementation of cacheProvider |
| 17 | type Provider struct { |
| 18 | cache layout.Path |
| 19 | store content.Store |
| 20 | dir string |
| 21 | lock *util.FileLock |
| 22 | lockMut sync.Mutex |
| 23 | } |
| 24 | |
| 25 | // NewProvider create a new CacheProvider based in the provided directory |
| 26 | func NewProvider(dir string) (*Provider, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected