Skip to content
Latchkey

Least Recently Used - CI/CD Glossary Definition

Least recently used (LRU) is an eviction policy that discards the cache entries untouched for the longest time first when space is needed.

Least recently used (LRU) is an eviction policy that discards the cache entries untouched for the longest time first when space is needed.

LRU is the default eviction strategy for most CI caches because recently used entries are the ones most likely to be needed again.

In GitHub Actions

The Actions cache evicts LRU entries once a repository exceeds its cache size limit (10 GB), and also removes entries not accessed for 7 days. Frequently hit caches survive; stale ones age out.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →