1
0
Fork 0

Update cache readme to include a link to cache action (#478)

Co-authored-by: Aiqiao Yan <aiqiaoy@aiqiaos-mbp.attlocal.net>
pull/497/head^2
Aiqiao Yan 2020-06-19 14:43:10 -04:00 committed by GitHub
parent 8e14ff9f0a
commit 66931ff481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,8 @@ Note that GitHub will remove any cache entries that have not been accessed in ov
## 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
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.
@ -38,4 +40,5 @@ const paths = [
]
const key = 'npm-foobar-d5ea0750'
const cacheId = await cache.saveCache(paths, key)
```
```