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

Function readCache

wxapp/vipshop.js:42–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42function readCache() {
43 try {
44 if (!fs.existsSync(CACHE_FILE)) return {};
45 return JSON.parse(fs.readFileSync(CACHE_FILE, "utf8")) || {};
46 } catch {
47 return {};
48 }
49}
50
51function writeCache(cache) {
52 try {

Callers 3

getCachedMethod · 0.70
saveCacheMethod · 0.70
removeLoginCacheMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected