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

Function writeCache

wxapp/yichengtong.js:61–67  ·  view source on GitHub ↗
(cache)

Source from the content-addressed store, hash-verified

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

Callers 2

saveCacheMethod · 0.70
removeTokenMethod · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected