diff options
Diffstat (limited to 'cli/internal/cache/cache_noop.go')
| -rw-r--r-- | cli/internal/cache/cache_noop.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cli/internal/cache/cache_noop.go b/cli/internal/cache/cache_noop.go new file mode 100644 index 0000000..80a3c23 --- /dev/null +++ b/cli/internal/cache/cache_noop.go @@ -0,0 +1,23 @@ +package cache + +import "github.com/vercel/turbo/cli/internal/turbopath" + +type noopCache struct{} + +func newNoopCache() *noopCache { + return &noopCache{} +} + +func (c *noopCache) Put(_ turbopath.AbsoluteSystemPath, _ string, _ int, _ []turbopath.AnchoredSystemPath) error { + return nil +} +func (c *noopCache) Fetch(_ turbopath.AbsoluteSystemPath, _ string, _ []string) (ItemStatus, []turbopath.AnchoredSystemPath, int, error) { + return ItemStatus{Local: false, Remote: false}, nil, 0, nil +} +func (c *noopCache) Exists(_ string) ItemStatus { + return ItemStatus{} +} + +func (c *noopCache) Clean(_ turbopath.AbsoluteSystemPath) {} +func (c *noopCache) CleanAll() {} +func (c *noopCache) Shutdown() {} |
