Creates a ResolutionResultCacheResolver
a resolver to delegate resolution to
a resolution result cache
Private _cachea resolution result cache
Private _innera resolver to delegate resolution to
Private _optionsResolve a URI to a wrap package, a wrapper, or a URI. If successful, cache the result.
the URI to resolve
a CoreClient instance that may be used to invoke a wrapper that implements the UriResolver interface
the current URI resolution context
A Promise with a Result containing either a wrap package, a wrapper, or a URI if successful
Static fromCreates a ResolutionResultCacheResolver from a resolver-like object
a resolver-like item to delegate resolution to
a resolution result cache
cacheErrors (default: false)
a ResolutionResultCacheResolver
Generated using TypeDoc
An IUriResolver implementation that caches the URI resolution result. The URI resolution result can be a URI, IWrapPackage, Wrapper or Error. Errors are not cached by default and can be cached by setting the cacheErrors option to true. The ResolutionResultCacheResolver wraps an IUriResolver implementation and delegates resolution to it.