MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / saveBgCache

Function saveBgCache

scripts/chongLuaDao.js:159–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157let cached = null;
158
159async function saveBgCache() {
160 try {
161 cached = {
162 blackList: await getStorage(KEYS.blackList, []),
163 whiteList: await getStorage(KEYS.whiteList, []),
164 };
165 } catch (e) {
166 console.log("cache chongLuaDao FAIL ", e);
167 }
168 return null;
169}
170
171function clearBgCache() {
172 cached = null;

Callers 1

chongLuaDao.jsFile · 0.85

Calls 1

getStorageFunction · 0.85

Tested by

no test coverage detected