blob: 80a3c235de226376af8759af0a72bb79db0d654d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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() {}
|