Why Redis?

Knowledge Videos

Short animated explainers, organised by subject.

Why Redis?

Why an in-memory store speeds up reads, how caching and TTL work, and Redis data structures.

Transcript

Asking a disk-based database for the same data again and again is slow.

Redis keeps data in memory, so reads and writes are extremely fast.

As a cache: check Redis first. On a miss, load from the database and store the result.

A time to live expires old entries, so the cache does not serve stale data forever.

It is more than key and value: strings, lists, sets, sorted sets, and hashes.

That powers sessions, rate limits, queues, and leaderboards.

Keep hot data close.

More in this series