Redis Interview Questions. Redis persistence options? RDB (snapshot): point-in-time snapshot, compact file, slower recovery but smaller. AOF (Append Only File): logs every write, durable but larger. Use both for best dur…
ReadRedis Interview Questions. Q: What is Redis and what is it used for?. Redis is an in-memory data structure store used as a cache, message broker, session store, rate limiter, and real-time leaderboard. All data is in RAM…
ReadData Structures & Commands. Strings. # Basic get/set SET name "Alice" GET name # "Alice" DEL name EXISTS name # 0 or 1 # With expiry SET session:abc "data" EX 3600 # expire in 3600 seconds SET session:abc "data" PX 60000…
ReadCaching, Pub/Sub & Patterns. Caching Patterns. // Cache-aside (lazy loading) — most common async function getUser(id) { const cacheKey = `user:${id}`; const cached = await redis.get(cacheKey); if (cached) return JSON.par…
ReadSave this stack to your personal DevRecall — add your own notes, track what you're learning, and share what you know with the community.
Get started — free forever