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

Method saveCache

wxapp/junpinhui.js:193–203  ·  view source on GitHub ↗
(extra = {})

Source from the content-addressed store, hash-verified

191 }
192
193 saveCache(extra = {}) {
194 const cache = readCache();
195 cache[this.cacheKey] = {
196 ...(cache[this.cacheKey] || {}),
197 openid: this.openid || this.getCached().openid || "",
198 ...(this.token ? { token: this.token } : {}),
199 ...extra,
200 updatedAt: new Date().toISOString(),
201 };
202 writeCache(cache);
203 }
204
205 removeToken() {
206 const cache = readCache();

Callers 2

loginMethod · 0.95
queryMemberMethod · 0.95

Calls 3

getCachedMethod · 0.95
readCacheFunction · 0.70
writeCacheFunction · 0.70

Tested by

no test coverage detected