Back to results for “Set”
Redis › RedisTimeSeries

What is RedisTimeSeries, and what kind of data is it specifically designed to handle?

Beginner

Answer

RedisTimeSeries is a module specifically designed for efficiently storing and querying time stamped data, such as sensor readings, application metrics, or stock prices, providing specialized commands for adding data points, querying ranges of time, and automatically aggregating or downsampling data over time.
TS.CREATE temperature_sensor1
TS.ADD temperature_sensor1 '*' 22.5
Real-world example An industrial monitoring system uses RedisTimeSeries to efficiently store temperature readings from thousands of sensors, taking advantage of its specialized time based querying and aggregation capabilities.

Common follow-ups: How is RedisTimeSeries different from just using a sorted set with timestamps as scores?;What happens if you add a data point with a timestamp that is out of order?