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

Function cacheFile

cmd/ttn-lw-cli/internal/util/cache.go:153–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151}
152
153func cacheFile() string {
154 cacheDir, err := os.UserCacheDir()
155 if err != nil {
156 return ""
157 }
158 return filepath.Join(cacheDir, "ttn-lw-cli", "cache")
159}
160
161// GetAuthCache gets the auth cache form the cache file.
162func GetAuthCache() (cache AuthCache, err error) {

Callers 2

GetAuthCacheFunction · 0.85
SaveAuthCacheFunction · 0.85

Calls 1

JoinMethod · 0.65

Tested by

no test coverage detected