Glossary · Databases

Redis

Redis is an in-memory data store used as a cache, session store, message broker, and fast key-value database with data structures like lists and sets.

Updated October 6, 2026

Redis is an open-source, in-memory data structure store used as a database, cache, and message broker. It keeps data in RAM and supports strings, hashes, lists, sets, sorted sets, and streams.

Why it matters

Because data lives in memory, Redis answers in well under a millisecond, which makes it ideal for caching, session storage, rate limiting, leaderboards, and job queues. It can persist data to disk through snapshots or an append-only log, but its main strength is speed rather than large durable storage. Memory is the limiting resource, so eviction policy matters.

Example

redis-cli -h 127.0.0.1 -p 6379
> SET session:abc "user:42" EX 3600
> GET session:abc
> INCR hits:home

EX 3600 makes the key expire after an hour.

Common mistakes

  • Leaving Redis open on port 6379 without a password or network restriction.
  • Using it as the only copy of important data without enabling persistence.
  • Storing keys with no expiry, so memory slowly fills until eviction or failure.

Get notified when this term updates

Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.

This page is general information written by our editorial team and updated when documentation changes. Servers and providers differ, so test changes safely first. See our editorial policy and disclaimer.