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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
root | string |
options | CollectOptions |
cacheDir | string |
Returns
Section titled “Returns”Promise<CachedCatalog>