Update cache readme to include a link to cache action (#478)
Co-authored-by: Aiqiao Yan <[email protected]>
This commit is contained in:
Vendored
+3
@@ -8,6 +8,8 @@ Note that GitHub will remove any cache entries that have not been accessed in ov
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
This package is used by the v2+ versions of our first party cache action. You can find an example implementation in the cache repo [here](https://github.com/actions/cache).
|
||||||
|
|
||||||
#### Restore Cache
|
#### Restore Cache
|
||||||
|
|
||||||
Restores a cache based on `key` and `restoreKeys` to the `paths` provided. Function returns the cache key for cache hit and returns undefined if cache not found.
|
Restores a cache based on `key` and `restoreKeys` to the `paths` provided. Function returns the cache key for cache hit and returns undefined if cache not found.
|
||||||
@@ -39,3 +41,4 @@ const paths = [
|
|||||||
const key = 'npm-foobar-d5ea0750'
|
const key = 'npm-foobar-d5ea0750'
|
||||||
const cacheId = await cache.saveCache(paths, key)
|
const cacheId = await cache.saveCache(paths, key)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user