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

Method setCache

src/_provider/Search/searchClass.ts:186–192  ·  view source on GitHub ↗
(cache)

Source from the content-addressed store, hash-verified

184 }
185
186 protected setCache(cache) {
187 cache = JSON.parse(JSON.stringify(cache));
188 setTimeout(() => {
189 this.databaseRequest();
190 }, 200);
191 return api.storage.set(`${this.page.name}/${this.identifier}/Search`, cache);
192 }
193
194 static similarity(externalTitle, title, titleArray: string[] = []) {
195 let simi = compareTwoStrings(title.toLowerCase(), externalTitle.toLowerCase());

Callers 3

setUrlMethod · 0.95
setOffsetMethod · 0.95
searchMethod · 0.95

Calls 2

databaseRequestMethod · 0.95
setMethod · 0.65

Tested by

no test coverage detected