mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-11-26 20:11:01 -05:00
Addressing comments
This commit is contained in:
parent
e19e89eb2a
commit
11dd8059a1
1 changed files with 3 additions and 2 deletions
|
@ -179,9 +179,10 @@ steps:
|
|||
|
||||
|
||||
## Cache Version
|
||||
Cache version is unique for a combination of compression tools(Gzip, Zstd, etc) and the path of cache, which may differ according to runner OS as well. If two caches have different versions, then they are identified as unique cache entries.
|
||||
Cache version is unique for a combination of compression tool used for compression of cache (Gzip, Zstd, etc based on runner OS) and the path of directories being cached. If two caches have different versions, they are identified as unique cache entries. This also means that a cache created on `windows-latest` runner can't be restored on `ubuntu-latest` as cache `Version`s are different.
|
||||
|
||||
Example: Below example will create 3 unique caches with same keys. Ubuntu and windows runners will use different compression technique and hence create two different caches. And `build-linux` will create two different caches as the `paths` are different.
|
||||
|
||||
Example: Below example will create 3 unique caches with same keys.
|
||||
```yaml
|
||||
jobs:
|
||||
build-linux:
|
||||
|
|
Loading…
Reference in a new issue