← All tutorials
Skill Zuno · skillzunos.com · Fullstack
Redis tutorial
Learn Redis on Skill Zuno. This Redis tutorial covers New, Easy, Medium, Hard, and Diff levels so you can study practical Redis problems on skillzunos.com.
Open Redis on Skill ZunoAlso see the Redis interview questions.
Redis is an in-memory data store used as a cache, message broker, session store and fast database. It offers data structures such as strings, hashes, lists, sets, sorted sets and streams, with optional persistence to disk. Redis interviews cover data types, expiry and eviction, persistence, caching patterns, pub/sub, replication and clustering.
Redis topics covered
- Data types: strings, hashes, lists, sets, sorted sets and streams — Picking the right structure for counters, objects, queues, unique items, rankings and event logs.
- Key expiry with TTL and eviction policies — Expiring keys automatically, and what Redis removes when memory is full.
- Persistence: RDB snapshots and the AOF log — Trading durability against speed when saving data to disk.
- Caching patterns: cache-aside, write-through and stampede protection — Keeping a cache consistent with the database and avoiding thundering herds.
- Pub/sub and Redis Streams — Broadcasting messages, and durable event streams with consumer groups.
- Transactions with MULTI/EXEC and Lua scripts — Running several commands atomically, and server-side scripting.
- Distributed locks and rate limiting — Using SET NX with expiry for locks, and counters for rate limits.
- Replication, Sentinel and Redis Cluster — Scaling Redis and keeping it available when a node fails.
What you can learn
- Redis tutorial for beginners and experienced developers
- Level-based practice: New, Easy, Medium, Hard, and Diff
- Fullstack topics alongside Redis on skillzunos.com