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

Function NewDevArtifactCache

pkgcache/cache_dev_artifact.go:20–25  ·  view source on GitHub ↗
(ctx context.Context, cacheDir string)

Source from the content-addressed store, hash-verified

18}
19
20func NewDevArtifactCache(ctx context.Context, cacheDir string) *DevArtifactCache {
21 return &DevArtifactCache{
22 ctx: ctx,
23 cacheDir: cacheDir,
24 }
25}
26
27// Restore restores the cached package to package directory if cache hit, and return the archive path.
28// If cache miss, just return empty string without error.

Callers 2

NewDevCacheConfigFunction · 0.92
newTestDevArtifactCacheFunction · 0.85

Calls

no outgoing calls

Tested by 1

newTestDevArtifactCacheFunction · 0.68