Skip to content

What it is

Redis is an in-memory data store that keeps the entire dataset in RAM for microsecond latency, offering strings, lists, sets, sorted sets and hashes.

Redis is a key-value store that lives in memory. Unlike a traditional database that reads from disk, Redis keeps the entire dataset in RAM, achieving microsecond-level reads and writes. It is used primarily as a cache, but it is also a message broker (Pub/Sub), a queue (with blocking operations), a leaderboard (sorted sets), and a session store.

Redis is single-threaded for command execution, using an event loop. This sounds slow, but it is the source of its safety guarantees: no two commands run concurrently, so no locking is needed. Redis 6 introduced I/O threading for reading/writing, but commands remain single-threaded.