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

Method deleteItems

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

Source from the content-addressed store, hash-verified

204 }
205
206 static deleteItems(func: Function | string, items: any[]): number {
207 const hashes = Cache.getItemsHashes(func, items);
208 const fnName = getFnName(func);
209 const paths = hashes.map(r => path.join(Cache.cacheDirectory, fnName, `${r}.json`));
210 _deleteItems(paths);
211 return hashes.length;
212 }
213
214 static clear(func?: Function | string): void {
215 if (func !== undefined) {

Callers 1

deleteItemsByFilterMethod · 0.80

Calls 4

getFnNameFunction · 0.85
_deleteItemsFunction · 0.85
getItemsHashesMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected