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

Function getCached

src/_provider/listAbstract.ts:155–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153 }
154
155 async getCached(): Promise<listElement[]> {
156 if (await this.getCache().hasValue()) {
157 const cachelist = await this.getCache().getValue();
158 cachelist.forEach(item => {
159 item = this.fn(item);
160 item.watchedEp = '';
161 item.score = '';
162 });
163 return cachelist;
164 }
165 return [];
166 }
167
168 protected updateListener;
169

Callers

nothing calls this directly

Calls 3

hasValueMethod · 0.80
getCacheMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected