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

Function writeCache

wxapp/ctrip.js:62–68  ·  view source on GitHub ↗
(cache)

Source from the content-addressed store, hash-verified

60}
61
62function writeCache(cache) {
63 try {
64 fs.writeFileSync(TOKEN_CACHE_FILE, JSON.stringify(cache, null, 2), "utf8");
65 } catch (e) {
66 $.log(`token缓存写入失败: ${e.message || e}`);
67 }
68}
69
70function md5(text) {
71 return crypto.createHash("md5").update(String(text)).digest("hex");

Callers 2

saveCacheMethod · 0.70
removeTicketMethod · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected