Redis

In-memory data structures for caching and queues.

Redis is taught here in 3 lessons, running from Data types and the commands that matter through to Pub/sub, queues and persistence. Each lesson takes one topic, shows the working code, and links onward to the next, so the course can be read straight through in order.

TrackDatabases
Lessons3
LevelBeginner
Reading timeabout 39 minutes
PrerequisitesHelpful, but not required: MongoDB

Lessons

  1. Data types and the commands that matterStrings, lists, hashes, sets and sorted sets — what each one is for, and why the O(N) commands are a production hazard.
  2. Expiry and caching patternsTTL mechanics, eviction policies, cache-aside in practice, and how to stop a cold cache from taking down the database behind it.
  3. Pub/sub, queues and persistenceFire-and-forget messaging versus durable streams, reliable queue patterns with lists, and the real durability guarantees of RDB and AOF.

More in Databases

SQL MySQL PostgreSQL MongoDB SQLite

FAQ

How long does the Redis course take?
It has 3 lessons, about 39 minutes of reading. Expect roughly twice that if you type out and run every example.
Do I need prior experience for Redis?
Not strictly. It helps to have read MongoDB first, because some lessons build on it, but every lesson explains its own assumptions.
What should I read after Redis?
Continue with SQLite (3 lessons), the next course in Databases.

Last refreshed 2026-09-18.