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

Function readCache

wxapp/yichengtong.js:52–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 3

getCachedMethod · 0.70
saveCacheMethod · 0.70
removeTokenMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected