What is redis
Last updated: April 1, 2026
Key Facts
- Redis stands for Remote Dictionary Server and was created by Salvatore Sanfilippo in 2009
- It stores data in RAM (memory) instead of disk, providing extremely fast read and write operations
- Redis supports multiple data structures including strings, lists, sets, hashes, and sorted sets
- It is commonly used for caching, session storage, message queues, and real-time analytics
- Redis offers optional persistence to save data to disk while maintaining in-memory speed advantages
Overview
Redis is an in-memory data structure store that provides lightning-fast data access and processing capabilities. It was created by Salvatore Sanfilippo in 2009 and is widely used by companies like Twitter, GitHub, and Stack Overflow. Redis operates as a key-value store but supports complex data structures, making it versatile for numerous use cases beyond simple caching.
In-Memory Storage
The key advantage of Redis is that it stores all data in RAM (random access memory) rather than on disk. This makes data access incredibly fast, with operations typically completing in microseconds. However, this also means that all data is lost if the server restarts unless persistence features are enabled. This characteristic makes Redis ideal for applications requiring real-time performance.
Data Structures
Unlike traditional key-value stores that only support strings, Redis supports multiple sophisticated data structures. These include strings, lists, sets, sorted sets, hashes, streams, and more. Each data structure provides specific operations optimized for particular use cases, allowing developers to solve complex problems efficiently without moving data between systems.
Common Use Cases
Caching: Redis dramatically improves application performance by caching frequently accessed data. Session Storage: User sessions can be stored and retrieved quickly. Message Queues: Redis lists enable pub/sub messaging patterns. Real-Time Analytics: Counters and sorted sets power leaderboards and analytics dashboards. Rate Limiting: Redis efficiently tracks and enforces API rate limits.
Persistence Options
While Redis is primarily an in-memory store, it offers two persistence mechanisms: RDB (snapshots) and AOF (append-only file). These options allow you to save data to disk periodically or continuously, protecting against data loss while maintaining performance benefits of in-memory operations.
Related Questions
What is the difference between Redis and Memcached?
Both are in-memory caches, but Redis supports multiple data structures and persistence, while Memcached only supports simple string values. Redis is more versatile, while Memcached is simpler and sometimes faster for basic caching.
Does Redis data persist after restart?
By default, Redis data is lost on restart since it only stores data in memory. However, Redis offers RDB snapshots and AOF persistence options that save data to disk, allowing you to restore data after a restart.
What is a Redis key-value store?
A key-value store associates unique keys with data values for quick lookup and retrieval. Redis extends this concept by allowing values to be complex data structures rather than just simple strings, enabling more sophisticated data operations.
More What Is in Daily Life
Also in Daily Life
More "What Is" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
- Redis Official DocumentationSSPL
- Wikipedia - RedisCC-BY-SA-4.0