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

Function getCacheFilePath

pkg/version/remote.go:156–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154}
155
156func getCacheFilePath() (string, error) {
157 cacheDir, err := os.UserCacheDir()
158 if err != nil {
159 return "", err
160 }
161 return filepath.Join(cacheDir, "tts", "version-check"), nil
162}
163
164// cachedCheck returns previously saved result from cache
165func cachedCheck() (*cachedUpdate, error) {

Callers 3

cachedCheckFunction · 0.85
ClearRecentCheckCacheFunction · 0.85
saveCheckFunction · 0.85

Calls 1

JoinMethod · 0.65

Tested by

no test coverage detected