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

Function readCache

wxapp/aima.js:47–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

updateCachedTokenFunction · 0.70
getAccessTokenFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected