SpinTheMic
Pro

Explain it in 60 seconds

TTL in caching

System Design · Caching · Beginner

What is a TTL in a cache, and how do you choose one?

What a strong answer covers

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

  • Time to live: how long an entry stays.
  • Expired entries are removed or refetched.
  • Short TTL: fresher, more DB load.
  • Long TTL: faster, more staleness.
  • Base on how often data changes and staleness tolerance.
Practise this topic

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

See all topics