fileSystemCache represents a file cache.
| 20 | |
| 21 | // fileSystemCache represents a file cache. |
| 22 | type fileSystemCache struct { |
| 23 | // name is cache name. |
| 24 | name string |
| 25 | |
| 26 | dir string |
| 27 | maxSize uint64 |
| 28 | expire time.Duration |
| 29 | grace time.Duration |
| 30 | stats Stats |
| 31 | |
| 32 | wg sync.WaitGroup |
| 33 | stopCh chan struct{} |
| 34 | } |
| 35 | |
| 36 | // newFilesSystemCache returns new cache for the given cfg. |
| 37 | func newFilesSystemCache(cfg config.Cache, graceTime time.Duration) (*fileSystemCache, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected