Skip to content
Theory · Redis: Data Structures, TTL, Eviction · lesson 8 of 12

Key time to live

A note on the board at the counter says "Raf −20%", and a corner of it adds: "take down at 6 pm". At six in the evening it comes down, or guests will see a deal that no longer exists. Nobody has to remember the note all day: its deadline is written on the note itself.

In this lesson

  • Time to live
  • What resets the deadline
  • How expired keys are removed
  • Common mistake
  • Key points