Database Technologies

Redis

Redis explained: an in-memory key-value store used for caching, sessions, leaderboards and queues, with cache-aside, TTL expiry and persistence to disk.

  • 6 min read
  • 5 questions
  • +35 XP
Transcript

Redis, explained by cats. Kitty runs a busy kitchen. Orders come in all day. Pantry too far. Walking takes time. Instead, Kitty keeps a tray on the counter. She puts the most used ingredients right there. Tuna, milk, snacks, ready to grab.

That tray is Redis. Fast, in memory, key and value. Tuna equals five cans. Milk equals two bottles, if something's missing. Kitty visits the pantry once, refills the tray. Next time, instant grab. Items can expire, that's time to live.

Kitty can even save the tray for later. That's persistence. Redis equals instant data access. Perfect for caching, sessions, leaderboards and queues. Fast pause, fast data.