MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / readCache

Function readCache

wxapp/junpinhui.js:32–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 3

getCachedMethod · 0.70
saveCacheMethod · 0.70
removeTokenMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected