Redis

Redis (Remote Dictionary Server) is an open-source, in-memory data structure store, used as a distributed, in-memory key–value database, cache, and message broker, with optional durability.

What is Redis?

Redis supports different kinds of abstract data structures, such as strings, lists, maps, sets, sorted sets, HyperLogLogs, bitmaps, streams, and spatial indices. Because it keeps all data in memory, it is incredibly fast.

Key Features

  • In-Memory Performance: Sub-millisecond latency for data access.
  • Data Structures: Rich set of data types beyond simple key-value pairs.
  • Persistence: Options to persist data to disk (RDB and AOF).
  • Replication: Master-slave replication for high availability.
  • Pub/Sub: Built-in messaging system for real-time applications.

Typical Use Cases

Redis is primarily used for caching, session management, real-time analytics, leaderboards, and message queues. It is often used alongside a traditional relational database (like MySQL or PostgreSQL) to speed up performance.

High Performance Web Apps

Redis handles the speed, while SQL handles the structure. Explore our SQL reference for the latter.

Browse SQL Reference