0Pricing
Redis Caching & Messaging (Pub/Sub, Streams) · Lesson

Time Series with RedisTimeSeries

Store, downsample, and query metrics efficiently using the RedisTimeSeries module with retention, compaction, and aggregation.

Why a Time Series Module?

Storing metrics (CPU, temperature, request counts) as plain keys wastes memory and makes range queries awkward. RedisTimeSeries is a module purpose-built for timestamped numeric data, with compression, retention, and downsampling.

Creating a Series

TS.CREATE makes a new series. You can set retention (how long to keep samples) and labels for filtering.

TS.CREATE sensor:temp RETENTION 86400000 LABELS room kitchen

All lessons in this course

  1. Overview of Redis Modules
  2. RediSearch for Full-Text Search
  3. RedisJSON & RedisGraph Basics
  4. Time Series with RedisTimeSeries
← Back to Redis Caching & Messaging (Pub/Sub, Streams)