Redis Fundamentals: Caching, Data Structures and Persistence

Learn Redis commands, data structures, caching, sessions and persistence. For backend developers who want fast, reliable in-memory data in their apps.

Start course →

What you'll learn

  • Install Redis and run core commands from redis-cli.
  • Choose between strings, lists, sets, hashes and sorted sets for a use case.
  • Implement caching with TTLs, cache-aside and invalidation, plus shared sessions.
  • Configure persistence, memory limits and basic security.
  • Use Redis from Node.js or Python and know when Pub/Sub or Streams fit.

Syllabus

Module 1: Getting Started

  1. What is Redis?
  2. Installing Redis
  3. redis-cli Basics

Module 2: Strings & Keys

  1. String Commands
  2. Key Expiry (TTL)
  3. Working with Keys

Module 3: Data Structures

  1. Lists
  2. Sets
  3. Hashes
  4. Sorted Sets

Module 4: Pub/Sub

  1. Publish / Subscribe

Module 5: Caching Patterns

  1. Cache-Aside Pattern
  2. Cache Invalidation
  3. Memory Limits & Eviction Policies

Module 6: Sessions

  1. Session Storage

Module 7: Persistence

  1. RDB Snapshots vs AOF Logs
  2. Security Basics: AUTH, ACLs & Network Binding

Module 8: Beyond Basics

  1. Redis in a Node App
  2. Redis in a Python App
  3. Redis as a Message Broker