RoadmapShopEvents
Skip to main content

Home > @microsoft/rush-lib > FileSystemBuildCacheProvider > tryGetCacheEntryPathByIdAsync

FileSystemBuildCacheProvider.tryGetCacheEntryPathByIdAsync() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Validates that the specified cache id exists on disk, and returns the path if it does.

Signature:

tryGetCacheEntryPathByIdAsync(terminal: ITerminal, cacheId: string): Promise<string | undefined>;

Parameters

ParameterTypeDescription
terminalITerminal
cacheIdstring

Returns:

Promise<string | undefined>