SpinTheMic
Pro

Explain it in 60 seconds

Update the cache or delete the key?

System Design · Caching · Experienced

When data changes, should you update the cached value or delete the key? Why?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Delete is simpler and safer.
  • Update can race and write stale values.
  • Delete causes a miss and refill.
  • Update useful for hot keys to avoid stampede.
  • Versioned updates if updating.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics