By Kevin McAleer, 6 Minutes
Page last updated November 24, 2026

Ahoy there makers! Picture a robot driving round the lounge, a dashboard on your laptop showing its battery level, and a little script counting how many laps it has done. Three programs, one shared notice board. That notice board is Redis.
By the end of this lesson you will be able to explain what Redis is, name the jobs it does well, and say which kind of data you would put in it for a robot project.
Redis is a data store that keeps everything in memory (RAM), which is why it answers in a fraction of a millisecond. It can act as a database, a cache and a message broker all at once. Instead of just rows and columns, it gives you ready-made data structures: strings, hashes, lists, sets and sorted sets.
For makers that means Redis is the glue between programs. A robot publishes its readings, a dashboard shows them, a logger keeps the last hundred, and none of them need to know about each other.
flowchart LR
R["Robot / sensor script"] -->|"latest reading"| X[("Redis")]
R -->|"jobs and events"| X
X -->|"live updates"| D["Dashboard"]
X -->|"queued jobs"| W["Worker script"]
X -->|"leaderboard"| G["Game or scoreboard"]
redis-cli and Python, and meet keys that expireAfter completing this course, you will be able to:
redis-cli and from Pythonredis Python libraryYou should be comfortable writing simple Python programs. If you’re new to Python, take Python for beginners first. The Docker course is a helpful companion, and Create Databases with Python and SQLite3 shows the other way to store data from a program.
Redis or Valkey?
In 2024 Redis moved from its old BSD licence to source-available licences, and the Linux Foundation started Valkey, an open source fork of Redis 7.2. Redis 8 later added the AGPLv3 open source licence as an option. Valkey speaks the same commands and works with the same Python library, so everything in this course works with either.
Commands first, then Python. Each lesson shows the command in redis-cli, with its real output, and then the same idea in Python. Typing the command by hand is the quickest way to see what Redis does.
Checked against a real server. The output shown was produced by running the examples against Redis 7 with the redis Python library. Your version may print slightly different spacing, but the results will match.
Complete programs. Programs you are asked to save and run are complete files. Short snippets that only make sense inside a bigger program say so.
Quizzes and exercises. Each lesson ends with a quiz, and your score is kept in your browser. The Try it Yourself exercises get harder as you go.
Teachers: this course suits learners aged 14 and over who can already write small Python programs. Allow 30 to 45 minutes per lesson, and about 90 minutes for the project. Each learner or pair needs a computer where they can install software, which can be blocked on locked-down school machines. If so, run one shared Redis on a teacher machine or a Raspberry Pi and keep it on the classroom network only, never the open internet. With no installs at all, learners can still read the lessons and work through the
redis-cliexamples on paper. No robot kit is needed.
Quick quiz 1 of 3
Why is Redis so fast?
Quick quiz 2 of 3
Which job is a good fit for Redis?
Quick quiz 3 of 3
Can you use the Valkey fork with this course?
Ready? Let’s get Redis running.
Comments