Skip to content

readCachedCatalog

readCachedCatalog(root, options, cacheDir): Promise<CachedCatalog>

Read what is cached and judge it, without probing anything.

Never throws. Every failure below — an unreadable store, a root that cannot be listed, a fingerprint that cannot be computed — degrades to a miss, which is exactly the state a caller would have been in with no cache at all.

ParameterType
rootstring
optionsCollectOptions
cacheDirstring

Promise<CachedCatalog>