Interview Prep/GitHub Actions/Caching, Artifacts, Runners & ARC

What are the cache size limits and eviction rules?

BeginnerConceptCaching, Artifacts, Runners & ARC
Answer

Each repository gets 10 GB of cache storage by default (paid plans can raise it). Caches not accessed in 7 days are evicted, and when the repo exceeds its limit, the least recently used caches are evicted until under quota. Thrashing (constant eviction) appears when many branches save large unique caches. Inspect and clean with:

gh cache list --sort size_in_bytes --limit 20
gh cache delete --all --ref refs/pull/42/merge
All GitHub Actions questions Roadmap: GitHub Actions

More on Caching, Artifacts, Runners & ARC