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

Function writeCache

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

Source from the content-addressed store, hash-verified

54}
55
56function writeCache(cache) {
57 try {
58 fs.writeFileSync(TOKEN_CACHE_FILE, JSON.stringify(cache, null, 2));
59 } catch (e) {
60 $.log(`⚠️ token缓存写入失败: ${e.message}`);
61 }
62}
63
64function updateCachedToken(account, token) {
65 if (!account || !token || isToken(account)) return;

Callers 1

updateCachedTokenFunction · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected