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

Function readCache

wxapp/longfor.js:98–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96});
97
98function readCache() {
99 try {
100 if (!fs.existsSync(TOKEN_CACHE_FILE)) return {};
101 return JSON.parse(fs.readFileSync(TOKEN_CACHE_FILE, "utf8")) || {};
102 } catch (e) {
103 return {};
104 }
105}
106
107function writeCache(cache) {
108 try {

Callers 3

getCachedTokenMethod · 0.70
saveCachedTokenMethod · 0.70
removeCachedTokenMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected