Cache

TTL

Time to live: how long a value stays in the cache. When it expires, it's read again from the database.

Example

A price with a TTL of 300 seconds: for 5 minutes it comes from the cache; after that it's read from the database again.

Test yourself: TTL

DNS records

A DNS record's TTL says how many ___ it can be kept in cache.

Lessons that use it

More cache terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.