MCPcopy Index your code
hub / github.com/MALSync/MALSync / getCache

Method getCache

src/_provider/Search/rulesClass.ts:110–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 }
109
110 protected async getCache(): Promise<rules | undefined> {
111 return api.storage.get(`${this.type}/${this.cacheKey}/Rules`).then(state => {
112 if (state) state.cache = true;
113 return state;
114 });
115 }
116
117 protected setCache(cache: rules) {
118 cache = JSON.parse(JSON.stringify(cache));

Callers 5

initMethod · 0.95
initFunction · 0.45
getCompleteListFunction · 0.45
getNextPageFunction · 0.45
getCachedFunction · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected