Intro & Setup: Overview
Redis is an in-memory key-value data structure server — it stores all data in RAM, which makes reads and writes extraordinarily fast. This module walks you through running Redis with Docker, opening a redis-cli session, and sending your first commands.
What this module covers
Section titled “What this module covers”| Lesson | Topic |
|---|---|
| Intro & Setup: Overview | This page — what Redis is and the run → cli → command loop |
| What is Redis? | In-memory model, event loop, and common use cases |
| Run with Docker | Pulling the image, starting a container, persistence basics |
| Redis CLI | Connecting, navigating history, inline help |
| First Commands | PING, SET, GET, DEL, and the PONG you will always remember |
The run → cli → command loop
Section titled “The run → cli → command loop”Every Redis session follows the same three steps:
- Start a Redis server (here, with Docker)
- Connect to it with redis-cli
- Send commands and read replies
Once your container is running (use the panel above), open a terminal and connect:
docker exec -it redis redis-cliYou will see the 127.0.0.1:6379> prompt. Try these commands right away:
127.0.0.1:6379> PINGPONG127.0.0.1:6379> SET name "Redis"OK127.0.0.1:6379> GET name"Redis"PING
SET name "Redis"
GET name