cache-action
Version:
Save and restore files as a cache in GitHub Actions
20 lines (19 loc) • 777 B
TypeScript
/**
* Restores files from the cache using the specified key and version.
*
* @param key - The cache key.
* @param version - The cache version.
* @returns A promise that resolves to a boolean value indicating whether the
* file was restored successfully.
*/
export declare function restoreCache(key: string, version: string): Promise<boolean>;
/**
* Saves files to the cache using the specified key and version.
*
* @param key - The cache key.
* @param version - The cache version.
* @param filePaths - The paths of the files to be saved.
* @returns A promise that resolves to a boolean value indicating whether the
* file was saved successfully.
*/
export declare function saveCache(key: string, version: string, filePaths: readonly string[]): Promise<boolean>;