Skip to content

Caching

How do I write a good cache key?

Quick answer

Hash exactly the files that determine the cached content — usually the lockfile — and nothing else.

The detail that matters

Add restore-keys with a shorter prefix so a near-miss still restores something useful rather than starting cold.

Your next build could be twice as fast, at half the price

Start free. Migrating away is the same one line, and we publish that diff too.