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

Function readCache

wxapp/jingjianx_all.js:188–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186}
187
188function readCache() {
189 try {
190 if (!fs.existsSync(CACHE_FILE)) return {};
191 return JSON.parse(fs.readFileSync(CACHE_FILE, "utf8")) || {};
192 } catch {
193 return {};
194 }
195}
196
197function writeCache(cache) {
198 try {

Callers 3

getCachedTokenMethod · 0.70
saveTokenMethod · 0.70
clearTokenMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected