DevOps · Flashcard

What do restore-keys add to an actions/cache step?

  • AOrdered prefixes so a partial cache is restored when the exact primary key produces a miss
  • BRegex patterns so any cache whose key matches the pattern is restored when the primary key misses
  • CA shorter key so the cache action rounds it to the nearest saved entry when the primary key misses
  • DExtra key values in an array so the action tries each one in turn until one of the caches hits

Why this is the answer

restore-keys are ordered prefixes that restore the most recent partial match when the exact key misses — they are prefixes not regex (and are not "fallback-keys"), keys are never rounded to a nearest entry, and key: takes a single value, not an array.

Official docs
Study in Gnoseed →