collectAndCache
collectAndCache(
root,options,cacheDir):Promise<Catalog>
Probe for real and write what came back to the cache.
The returned catalog is collect()’s, untouched but for a truncation
diagnostic: caching is a side effect here, never a filter on the answer.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
root | string |
options | CollectOptions |
cacheDir | string |
Returns
Section titled “Returns”Promise<Catalog>