Skip to content

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.

LessonTopic
Intro & Setup: OverviewThis page — what Redis is and the run → cli → command loop
What is Redis?In-memory model, event loop, and common use cases
Run with DockerPulling the image, starting a container, persistence basics
Redis CLIConnecting, navigating history, inline help
First CommandsPING, SET, GET, DEL, and the PONG you will always remember

Every Redis session follows the same three steps:

  1. Start a Redis server (here, with Docker)
  2. Connect to it with redis-cli
  3. Send commands and read replies

Once your container is running (use the panel above), open a terminal and connect:

Terminal window
docker exec -it redis redis-cli

You will see the 127.0.0.1:6379> prompt. Try these commands right away:

127.0.0.1:6379> PING
PONG
127.0.0.1:6379> SET name "Redis"
OK
127.0.0.1:6379> GET name
"Redis"
PING
SET name "Redis"
GET name
Where does Redis primarily store its data?
What does Redis reply with when you send the PING command?
Which command stores a value under a key in Redis?