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

Function readCache

wxapp/ctrip.js:53–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 3

getCachedMethod · 0.70
saveCacheMethod · 0.70
removeTicketMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected