Rush StackShopBlogEvents
Skip to main content

Home > @microsoft/rush-lib > FileSystemBuildCacheProvider

FileSystemBuildCacheProvider class

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.

A build cache provider using the local file system. Required by all cloud cache providers.

Signature:

export declare class FileSystemBuildCacheProvider 

Constructors

Constructor

Modifiers

Description

(constructor)(options)

(BETA) Constructs a new instance of the FileSystemBuildCacheProvider class

Methods

Method

Modifiers

Description

getCacheEntryPath(cacheId)

(BETA) Returns the absolute disk path for the specified cache id.

tryGetCacheEntryPathByIdAsync(terminal, cacheId)

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

trySetCacheEntryBufferAsync(terminal, cacheId, entryBuffer)

(BETA) Writes the specified buffer to the corresponding file system path for the cache id.