(ctx context.Context, cacheDir string)
| 18 | } |
| 19 | |
| 20 | func 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. |
no outgoing calls