MCPcopy
hub / github.com/omkarcloud/botasaurus / has

Method has

js/botasaurus-js/src/cache.ts:151–155  ·  view source on GitHub ↗
(func: Function | string, keyData: any)

Source from the content-addressed store, hash-verified

149 }
150
151 static has(func: Function | string, keyData: any): boolean {
152 _createCacheDirectoryIfNotExists(func);
153 const path = _getCachePath(func, keyData);
154 return _has(path);
155 }
156
157 static get(func: Function | string, keyData: any, raiseException = true): any {
158 if (Array.isArray(keyData)) {

Callers 8

isAffirmativeFunction · 0.45
isNegativeFunction · 0.45
getItemsHashesMethod · 0.45
filterItemsInCacheMethod · 0.45
filterItemsNotInCacheMethod · 0.45
getUniqueItemsFunction · 0.45
uniquifyStringsFunction · 0.45

Calls 3

_getCachePathFunction · 0.85
_hasFunction · 0.70

Tested by

no test coverage detected