Chapter

Getting started

Meet Redis: what it is, what it is for, and how to run your first commands.

Redis Basics 5 Lessons from courses

About this chapter

Before we touch code, let's build a clear mental model of Redis. In this chapter you will learn what Redis is, when to reach for it, and how to run it locally with Docker and send your first commands.

Lessons from courses

  1. 1 What is Redis? Redis is an in-memory key-value store. Learn what in-memory and key-value mean, and why Redis is so fast, in plain language for developers.
  2. 2 What Redis is used for A quick map of what Redis is used for: caching, sessions, queues, rate limiting, and pub/sub. A plain overview for developers new to Redis.
  3. 3 Redis vs a database Redis vs a traditional database like MySQL or Postgres. RAM vs disk, why Redis complements your database instead of replacing it, and when to use each.
  4. 4 Run Redis with Docker Run Redis locally with Docker. Start a container with docker run, add a docker-compose service, open redis-cli, and verify with PING.
  5. 5 Your first Redis commands Run your first Redis commands in redis-cli: PING to check the connection, SET and GET to store and read a value, and DEL to remove it.
Redis Basics Go to course