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

Eviction: Memory Is Full

Eviction Memory Is Full
Eviction Memory Is Full · Open board

The board behind Build Your Own Redis, From Scratch, where eviction got one paragraph. This is that paragraph, unpacked.

Before you start. You know that Redis keeps everything in RAM, and that a key can carry its own expiry date so it deletes itself later: that was Keys That Die (Expiry). This lesson is about the key that carries no expiry date, when the box it lives in runs out of room anyway.

Lesson 9 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

  • 1966: the rule that needs a crystal ball
  • A write arrives with nowhere to go
  • The list Redis refuses to keep
  • A cheap watch instead of a diary
  • When “recently” lies to you
  • A wall you want, and a wall you don’t

Terms it explains: evicted, LRU, sample, LFU, [the slate lab](/labs/the-slate/), logarithmic, Decay.

Review From Scratch