MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / filterItemsNotInCache

Method filterItemsNotInCache

js/botasaurus-js/src/cache.ts:275–278  ·  view source on GitHub ↗
(func: Function | string, items: any[])

Source from the content-addressed store, hash-verified

273 }
274
275 static filterItemsNotInCache(func: Function | string, items: any[]): any[] {
276 const cachedItems = new Set(Cache.getItemsHashes(func));
277 return items.filter(item => !cachedItems.has(Cache.hash(item)));
278 }
279
280 static printCachedItemsCount(func: Function | string): number {
281 const cachedItemsCount = getCachedFiles(func).length;

Callers

nothing calls this directly

Calls 4

getItemsHashesMethod · 0.80
filterMethod · 0.45
hasMethod · 0.45
hashMethod · 0.45

Tested by

no test coverage detected