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

Method filterItemsInCache

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

Source from the content-addressed store, hash-verified

268 }
269
270 static filterItemsInCache(func: Function | string, items: any[]): any[] {
271 const cachedItems = new Set(Cache.getItemsHashes(func));
272 return items.filter(item => cachedItems.has(Cache.hash(item)));
273 }
274
275 static filterItemsNotInCache(func: Function | string, items: any[]): any[] {
276 const cachedItems = new Set(Cache.getItemsHashes(func));

Callers 1

deleteItemsByFilterMethod · 0.45

Calls 4

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

Tested by

no test coverage detected