MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / fileSystemCache

Struct fileSystemCache

cache/filesystem_cache.go:22–34  ·  view source on GitHub ↗

fileSystemCache represents a file cache.

Source from the content-addressed store, hash-verified

20
21// fileSystemCache represents a file cache.
22type 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.
37func newFilesSystemCache(cfg config.Cache, graceTime time.Duration) (*fileSystemCache, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected