PrepCity

TTL expiration

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 8 pages · about 6 min

TTL expiration

A time to live bounds how stale a cached value can get; the numbers show what each shorter TTL costs the database.

Words you’ll learn

  • Cache
  • TTL
  • PostgreSQL
  • Redis
  • Requests a second
  • Database
  • API
  • Stale read
  • Cache hit

Page by page