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

Method saveCache

wxapp/fuyouhui.js:150–160  ·  view source on GitHub ↗
(extra = {})

Source from the content-addressed store, hash-verified

148 }
149
150 saveCache(extra = {}) {
151 const cache = readCache();
152 cache[this.cacheKey] = {
153 ...(cache[this.cacheKey] || {}),
154 ...(this.token ? { token: this.token } : {}),
155 ...(this.member?.id ? { memberId: this.member.id } : {}),
156 ...extra,
157 updatedAt: new Date().toISOString(),
158 };
159 writeCache(cache);
160 }
161
162 removeToken() {
163 const cache = readCache();

Callers 2

loginByOperateDataMethod · 0.95
getMemberInfoMethod · 0.95

Calls 2

readCacheFunction · 0.70
writeCacheFunction · 0.70

Tested by

no test coverage detected