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

Method getCache

src/_provider/Search/searchClass.ts:179–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 }
178
179 protected async getCache() {
180 return api.storage.get(`${this.page.name}/${this.identifier}/Search`).then(state => {
181 if (state) state.cache = true;
182 return state;
183 });
184 }
185
186 protected setCache(cache) {
187 cache = JSON.parse(JSON.stringify(cache));

Callers 2

getCachedOffsetMethod · 0.95
searchMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected