Rush StackShopBlogEvents
Skip to main content

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

FileSystemBuildCacheProvider.trySetCacheEntryBufferAsync() 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.

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

Signature:

trySetCacheEntryBufferAsync(terminal: ITerminal, cacheId: string, entryBuffer: Buffer): Promise<string>;

Parameters

ParameterTypeDescription
terminalITerminal
cacheIdstring
entryBufferBuffer

Returns:

Promise<string>