Home > @microsoft/rush-lib > BuildCacheConfiguration > tryLoadAsync
BuildCacheConfiguration.tryLoadAsync() 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.
Attempts to load the build-cache.json data from the standard file path common/config/rush/build-cache.json
. If the file has not been created yet, then undefined is returned.
Signature:
static tryLoadAsync(terminal: ITerminal, rushConfiguration: RushConfiguration, rushSession: RushSession): Promise<BuildCacheConfiguration | undefined>;
Parameters
Parameter | Type | Description |
---|---|---|
terminal | ITerminal | |
rushConfiguration | RushConfiguration | |
rushSession | RushSession |
Returns:
Promise<BuildCacheConfiguration | undefined>