MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / readCache

Function readCache

wxapp/airui.js:31–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29});
30
31function readCache() {
32 try {
33 if (!fs.existsSync(TOKEN_CACHE_FILE)) return {};
34 return JSON.parse(fs.readFileSync(TOKEN_CACHE_FILE, "utf8")) || {};
35 } catch {
36 return {};
37 }
38}
39
40function writeCache(cache) {
41 try {

Callers 3

getCachedMethod · 0.70
saveCacheMethod · 0.70
removeTokenMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected