Maintenance

Site is under maintenance — quizzes are still available.

Go to quizzes
DevOps & backends · Data backends

redis

Caching choreography, TTL discipline, Streams & pub/sub orientation.

Sponsored

Lesson outline

  1. 1
    Install Redis on Ubuntu

    Learn to install Redis on Ubuntu step by step — from prerequisites to running the server, with troubleshooting tips and next steps in the Redis track.

  2. 2
    Install Redis on macOS

    Step-by-step guide to installing Redis on macOS for local development. Covers Homebrew, configuration, starting the server, and verification.

  3. 3
    Install Redis on Windows with WSL

    Step-by-step guide to install Redis on Windows using WSL, with troubleshooting and next steps.

  4. 4
    Start Redis Server & Client

    Step 4 in the Redis track: learn how to start the Redis server and connect with the Redis CLI. Hands-on exercise, troubleshooting, and next steps included.

  5. 5
    Understand Redis Key-Value Structure

    Learn the core Redis key-value model: how keys map to values, data type flexibility, and naming conventions. Hands-on exercise and troubleshooting included.

  6. 6
    Set and Get String Values

    Learn to set and get string values in Redis with a practical, step-by-step tutorial. Master the core concepts, hands-on exercises, troubleshooting, and next steps.

  7. 7
    Use SET with options

    Use SET with options — Redis tutorial, lesson 7. Learn how to configure flags like NX, XX, EX, PX, and more to control key behavior during assignment. Includes hands-on walkthrough, troubleshooting edge cases, and practical examples for real-world caching and data management.

  8. 8
    Work with multiple keys

    Work with multiple keys in Redis — practical steps, troubleshooting, and what to learn next.

  9. 9
    INCR and DECR for Counters

    Master Redis atomic counters with INCR and DECR commands. This lesson covers core concepts, step-by-step usage, hands-on exercises, edge cases, and next steps for sequential learning.

  10. 10
    Manage Key Expiration with TTL

    Learn to set and manage key expiration in Redis using TTL. This lesson covers the core concept, step-by-step usage, practical exercises, and troubleshooting for automatic key expiry.

  11. 11
    Check Key Existence and Type

    Check key existence and type — redis. Learn how to verify if a key exists and determine its data type in Redis with hands-on steps, troubleshooting, and next lesson.

  12. 12
    DEL, UNLINK, FlushDB

    Learn to delete keys individually with DEL, perform non-blocking removal with UNLINK, and wipe all keys with FLUSHDB in Redis. Includes hands-on exercises, performance comparisons, and troubleshooting edge cases.

  13. 13
    Rename and copy keys

    Learn how to rename and copy keys in Redis with clear steps and hands-on exercises. Understand the mental model, see when to use each command, and handle edge cases. Part of a progressive Redis tutorial series.

  14. 14
    Redis Lists

    Master Redis lists in this hands-on lesson: LPUSH, RPUSH, LPOP, RPOP, LLEN, LRANGE, and more. Learn when to use lists vs sets or streams. Includes a practical exercise and troubleshooting tips for common edge cases. Essential for building queues, logs, and activity feeds.

  15. 15
    LPUSH, RPUSH, and LPOP

    Learn LPUSH, RPUSH, and LPOP in Redis with hands-on exercises. Master left/right push and left pop for list operations.

  16. 16
    Manage Redis Sets with SADD

    Learn how to add members to Redis sets using the SADD command, understand set behavior, and practice with hands-on exercises. This lesson covers core concepts, step-by-step usage, and common edge cases for managing sets in Redis.

  17. 17
    Find Set Intersections & Unions

    Learn how to use Redis commands to find intersections and unions of sets, with hands-on exercises and troubleshooting tips.

  18. 18
    Use Redis Hashes for Objects

    Learn to store and retrieve objects efficiently using Redis hashes: a hands-on guide to mapping real-world data structures to hash fields.

  19. 19
    Set and Get Hash Fields

    Learn to set and get hash fields in Redis with a hands-on walkthrough. Understand the core concept, compare options, and troubleshoot common issues. This step-by-step lesson is designed for developers building on prior Redis knowledge.

  20. 20
    Increment Hash Fields

    Master incrementing hash fields in Redis with a hands-on lesson. Learn atomic updates, increment commands, and best practices for real-world data structures.

  21. 21
    Redis Sorted Sets

    Discover how Redis Sorted Sets maintain order with scores, enabling leaderboards, priority queues, and range queries. This hands-on lesson covers creation, ranking operations, and efficiency tips for real-world use.

  22. 22
    Add Scores and Range Queries

    Master sorted set scores and range queries in Redis: adding scores, retrieving by rank or score range, and practical examples for real-world use.

  23. 23
    ZRANK and ZSCORE

    Learn how to retrieve the rank of a member and its score from a sorted set using ZRANK and ZSCORE commands in Redis.

  24. 24
    Redis Streams Basics

    Master Redis Streams basics with hands-on exercises. Learn message streaming, consumer groups, and offset management — essential for event-driven architectures.

  25. 25
    Add and read stream entries

    Learn to add entries to a Redis stream and read them in order. This hands-on tutorial covers XADD, XREAD, and basic stream operations step by step.

  26. 26
    Use Consumer Groups with Streams

    Use Consumer Groups with Streams: Learn how to coordinate multiple consumers for reliable message processing in Redis. This lesson covers creation, reading, acknowledgment, and recovery patterns.

  27. 27
    Read Pending Stream Entries

    Learn how to read pending stream entries in Redis with a hands-on exercise, troubleshooting tips, and next steps in the Redis track.

  28. 28
    Redis Acknowledge & Trim Streams

    Learn how to acknowledge messages and trim streams in Redis for efficient stream management. This lesson covers the core concepts, step-by-step instructions, hands-on exercises, and troubleshooting for Redis Streams acknowledgment and trimming.

  29. 29
    Configure Redis RDB persistence

    Learn how to configure RDB (Redis Database) persistence — snapshot-based data durability. Understand configuration, triggers, and trade-offs with practical examples.

  30. 30
    Configure Redis AOF

    Set up Append-Only File persistence in Redis step by step. Learn how to enable AOF, tune fsync policies, compare durability and performance trade-offs, and troubleshoot common edge cases. Hands-on exercise included.

  31. 31
    Redis Replication Basics

    Understand how Redis replication works: master-slave architecture, data consistency, read scaling, and failover. Hands-on exercise included.

  32. 32
    Set up a Redis replica

    Learn to set up a Redis replica in this hands-on tutorial. Follow step-by-step instructions, understand the core concepts, and apply them to build a reliable replicated setup.

  33. 33
    Handle Redis Failover Manually

    Step-by-step manual failover in Redis: understand the process, execute a controlled switch, and handle edge cases. Practical for high-availability setups.

  34. 34
    Redis Sentinel Intro

    Learn the fundamentals of Redis Sentinel for high availability — understand its core concepts, hands-on walkthrough, and troubleshooting tips.

  35. 35
    Set up a Sentinel cluster

    Learn to set up a Redis Sentinel cluster for high availability. This hands-on lesson covers core concepts, step-by-step configuration, failover testing, and troubleshooting to ensure production readiness.

  36. 36
    Monitor Redis with Sentinel

    Monitor Redis with Sentinel - learn to configure and manage high availability with Redis Sentinel for automatic failover and monitoring.

  37. 37
    Redis Transactions (MULTI)

    Learn how to use Redis MULTI to execute a batch of commands atomically and consistently, with rollback on syntax errors and practical exercises.

  38. 38
    DISCARD in Redis

    Learn how to discard Redis transactions using the DISCARD command with a step-by-step walkthrough, edge cases, and practical exercises.

  39. 39
    Redis pipelining

    Learn how to boost Redis performance by batching commands with pipelining — reduce round trips, lower latency, and complete a hands-on exercise.

  40. 40
    Redis Pub/Sub

    Learn Redis Pub/Sub: messaging pattern for real-time communication between publishers and subscribers, with hands-on walkthrough and troubleshooting.

  41. 41
    Subscribe to channels in Redis

    Learn how to subscribe to channels in Redis for real-time messaging. This hands-on tutorial covers the SUBSCRIBE command, channel patterns, and practical examples for building pub/sub systems.

  42. 42
    Publish Messages to Channels

    Learn to publish messages to channels in Redis—step-by-step with hands-on exercise, troubleshooting, and next lesson.

  43. 43
    Use Redis as a message queue

    Learn to use Redis as a message queue: publish tasks, consume via blocking pops, and handle failures. Hands-on with LPUSH/BRPOP, reliability patterns, and when to choose Redis over dedicated brokers.

  44. 44
    Redis rate limiting

    Learn to implement rate limiting with Redis to control API or service request rates efficiently.

  45. 45
    Cache Queries with Redis

    Learn to cache database queries with Redis to boost application performance. This lesson covers the core concept, step-by-step implementation, hands-on exercises, and troubleshooting tips.

  46. 46
    Set Keys With TTL

    Learn to set keys with TTL expiration in Redis. Understand time-to-live discipline, hands-on exercise, and when to choose expiration over other key management strategies.

  47. 47
    Redis Eviction Policies

    Learn how Redis manages memory by evicting keys when maxmemory is reached. Explore all eviction policies from noeviction to volatile-lru and allkeys-lfu, and choose the right one for your use case.

  48. 48
    Choose Between allkeys-lru and volatile-ttl

    Learn when to use allkeys-lru vs volatile-ttl eviction policies in Redis – pick the right strategy based on your cache's TTL discipline and memory constraints.

  49. 49
    Redis Session Storage

    Learn to use Redis for session storage in this practical tutorial. Understand core concepts, step-by-step implementation, hands-on exercises, and troubleshooting for scalable session management.

  50. 50
    Redis Password & TLS Security

    Secure your Redis instance by enabling password authentication and Transport Layer Security (TLS) encryption. This lesson covers configuration, client connections, and best practices for production-grade Redis security.

  51. 51
    Real-time Leaderboard with Sorted Sets

    Learn to build a real-time leaderboard using Redis sorted sets. This lesson covers the core concepts, hands-on walkthrough, and troubleshooting.

  52. 52
    Rate Limiting with Redis & Flask

    Implement rate limiting with Redis on Flask. Master sliding-window counters using Redis sorted sets & INCR commands in a full walkthrough tutorial.

  53. 53
    Deploy Redis Cluster on Kubernetes

    Learn to deploy a Redis cluster on Kubernetes with this hands-on tutorial. Covers core concepts, step-by-step deployment, troubleshooting, and next steps in the Redis learning path.

redis — step-by-step tutorials

What you will find here

This track walks through redis in order — each lesson is server-rendered HTML you can read without JavaScript. Follow the outline, then practice in the browser IDE when a lesson links to runnable code.

Tutorials vs quizzes and code samples

Tutorials teach in sequence. For quick checks use quizzes. For copy-paste snippets see code samples. For deeper reading browse articles.