Self-destructing keys the way Redis actually does it: lazy expiry on read, an active sweeper later. Plus the one testing pattern the whole Go standard library uses.
CODE
git checkout ep-09
github.com/tahaJemmali/learn-go-by-building-redis
Every branch is a desk: the earlier episodes are already finished on it, and
today's file is already there with TODO comments in it. The next branch is
the answer key.
THE COURSE
Twenty episodes, zero dependencies, standard library only.
Full playlist: • Learn Go by Building Redis
Episode 09 of 20 · Next: #10 Parsing the Redis protocol