restore-keys
A list of key prefixes the cache action tries, in order, when no entry matches the exact key.
In more detail
A prefix match restores the most recent similar entry, a near miss that still saves most of the download. The cache-hit output is false in that case, and a new entry is saved under the exact key after the job succeeds.
Related terms
- cache key — The name a cache entry is saved and looked up under, usually built from the operating system and a hash of the lock file.
- dependency cache — Saved copies of downloaded dependencies that GitHub Actions restores into later runs so they need not be fetched again.
Taught in
- Speeding Up Builds: Caching Dependencies — Continuous Integration & Continuous Delivery Pipelines