Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 02 · From Scratch · Redis · with code: Go · about 20 min to read

Play it as a journeyTutor comes with a plan

Keys That Die (Expiry)

Keys That Die (Expiry)
Keys That Die (Expiry) · Open board

The depth behind one paragraph of Build Your Own Redis, From Scratch: what actually happens the instant a key’s time runs out.

Before you start. Redis: One Thread, Many Clients set the rule this whole lesson bends around: Redis answers every request through one worker, and that worker can never be made to wait on anything slow. The only maths you need here is a rate, so many things per second, and a fraction of a small handful.

Lesson 8 of 117 in From Scratch

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 2003: a note with no alarm clock
  • The fridge that only looks when you reach in
  • Twelve years of a smell nobody noticed
  • Once a tick, somebody checks a handful
  • The shop with two rooms
  • Why 25%
  • TTL under replication
  • Small print worth carrying

Terms it explains: TTL, Lazy expiry, active expiry, reaper, replica, absolute, from `db->expires`, without deleting it.

Review From Scratch