Redis Data Type
Question
What type of database is Redis?
Hint
Redis stores data in memory for fast access.
Explanation
Redis is an in-memory key-value data store. It keeps all data in RAM, enabling sub-millisecond read/write operations. Redis supports data structures: strings, lists, sets, sorted sets, hashes, streams, and more. Use cases: 1) Caching (session storage, query results). 2) Real-time analytics. 3) Message queues (pub/sub). 4) Leaderboards (sorted sets). 5) Rate limiting. Redis can persist to disk (RDB snapshots, AOF logs) but is primarily volatile. Redis is single-threaded, which simplifies concurrency. Redis Cluster provides horizontal scaling and high availability.
Related Resources
Related Lessons
- Redis
Learn Redis.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.