Skip to main content

Redis

Redis is an in-memory data store commonly used for caching, queues, sessions, rate limits, and fast counters.

What Is Redis

Redis stores data in memory for very fast reads and writes.

It supports data structures such as strings, hashes, lists, sets, sorted sets, streams, and pub/sub channels.

How To Use Redis

Run a Redis server locally or use a hosted provider. Connect from your application with a Redis client library.

Basic Example

SET user:1:name "Tiew"
GET user:1:name
INCR page:views

Common Concepts

  • Keys identify stored values.
  • Expiration times make cached values temporary.
  • Data structures support different access patterns.
  • Pub/sub and streams support messaging workflows.

What To Learn Next

Learn caching patterns, expiration policies, eviction, persistence, streams, queues, and distributed locking.