Skip to content

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.

ParameterType
rootstring
optionsCollectOptions
cacheDirstring

Promise<Catalog>