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

Function readCache

wxapp/wps.js:49–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47});
48
49function readCache() {
50 try {
51 if (!fs.existsSync(TOKEN_CACHE_FILE)) return {};
52 return JSON.parse(fs.readFileSync(TOKEN_CACHE_FILE, "utf8")) || {};
53 } catch {
54 return {};
55 }
56}
57
58function writeCache(cache) {
59 try {

Callers 3

getCachedMethod · 0.70
saveCacheMethod · 0.70
removeLoginMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected