Abekus — AI learning and job matching platform logo

Redis for Developers: Caching & Data Structures

  • 164 lessons
  • About 18 hours
  • Self-paced
0%Complete
Guided Mode

Start with lesson 1

164 lessons. The first one is free, no signup needed.

🗺️ Your learning path
First cache
Talking to Redis
Latency and round trips

What you'll learn

  • Explain when an in-memory key-value store fits, work in redis-cli and redis-py with connection pooling and pipelining, and design key names, SCAN-based key lookups and expiry with EXPIRE and TTL
  • Model data with strings, INCR counters, hashes, lists, sets and sorted sets for leaderboards, and count compactly with bitmaps, HyperLogLog and bitfields
  • Apply cache-aside, read-through, write-through and write-behind caching, handle invalidation and cache stampedes, choose an eviction policy, and find big keys and memory overhead with MEMORY USAGE
  • Build session storage, fixed-window, sliding-window and token-bucket rate limiters, and distributed locks with SET NX PX, and make updates atomic with MULTI/EXEC, WATCH, Lua scripts and Redis Functions
  • Deliver messages with pub/sub and keyspace notifications, process streams with consumer groups and XACK, and compare RDB and AOF persistence, replication, Sentinel failover and Cluster sharding
  • Store and query JSON documents, describe search and vector indexes at an overview level, secure Redis with AUTH, TLS and ACLs, and work through common Redis design interview questions

About this course

Redis for Developers: Caching & Data Structures is a guided course that teaches Redis 8 (Redis Open Source) from the side of the application that talks to it. Commands are shown in redis-cli, with short redis-py examples where it helps to see the application view. Each lesson is a few minutes of reading cards with diagrams and narration, followed by a quiz that checks you understood it.

Lesson 1 puts a Redis cache in front of a slow product-details database query. The first request goes to the database and stores the result in Redis, and the second request is answered from Redis without touching the database. From there the course adds keys and expiry, the core data structures, caching patterns, eviction, sessions, rate limiting, locks, transactions, scripting, messaging, persistence and scaling one piece at a time, always tied back to what your application sees.

Frequently asked questions