MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / ClearRecentCheckCache

Function ClearRecentCheckCache

pkg/version/remote.go:181–187  ·  view source on GitHub ↗

ClearRecentCheckCache clears cache

()

Source from the content-addressed store, hash-verified

179
180// ClearRecentCheckCache clears cache
181func ClearRecentCheckCache() error {
182 cacheFile, err := getCacheFilePath()
183 if err != nil {
184 return err
185 }
186 return os.Remove(cacheFile)
187}
188
189// saveCheck saves a result in cache, along with a timestamp
190func saveCheck(result *Update) error {

Callers 1

TestCheckUpdateFunction · 0.92

Calls 2

getCacheFilePathFunction · 0.85
RemoveMethod · 0.80

Tested by 1

TestCheckUpdateFunction · 0.74