| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @microsoft/rush-lib > BuildCacheConfiguration
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Use this class to load and save the "common/config/rush/build-cache.json" config file. This file provides configuration options for cached project build output.
Signature:
export declare class BuildCacheConfiguration |
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
boolean |
(BETA) Indicates whether the build cache feature is enabled. Typically it is enabled in the build-cache.json config file. | |
|
|
string | undefined |
(BETA) An optional salt to inject during calculation of the cache key. This can be used to invalidate the cache for all projects when the salt changes. | |
|
boolean |
(BETA) Indicates whether or not writing to the cache is enabled. | ||
|
|
ICloudBuildCacheProvider | undefined |
(BETA) The provider for interacting with the cloud build cache, if configured. | |
|
|
(BETA) Method to calculate the cache entry id for a project, phase, and project state. | ||
|
|
(BETA) The provider for interacting with the local build cache. |
|
Method |
Modifiers |
Description |
|---|---|---|
|
|
(BETA) Gets the absolute path to the build-cache.json file in the specified rush workspace. | |
|
loadAndRequireEnabledAsync(terminal, rushConfiguration, rushSession) |
|
(BETA) Loads the build-cache.json data from the standard file path |
|
|
(BETA) Attempts to load the build-cache.json data from the standard file path |