MCPcopy Index your code
hub / github.com/celer-pkg/celer / NewPkgCacheConfig

Function NewPkgCacheConfig

configs/pkgcache_config.go:27–35  ·  view source on GitHub ↗
(ctx context.Context, dir string, writable bool)

Source from the content-addressed store, hash-verified

25}
26
27func NewPkgCacheConfig(ctx context.Context, dir string, writable bool) *PkgCacheConfig {
28 return &PkgCacheConfig{
29 ctx: ctx,
30 Dir: dir,
31 Writable: writable,
32 CacheArtifacts: true,
33 CacheDownloads: true,
34 }
35}
36
37func (p *PkgCacheConfig) Refresh() error {
38 if p.Dir == "" {

Callers 3

SetPkgCacheDirMethod · 0.85

Calls

no outgoing calls

Tested by 2