Redis Timeseries is a module in Redis for timeseries storage, accumulation and query. Redis Timeseries can be used as a ticker plant for financial data.
Tools Used
Redis Insight
Video explanation
Commands
CUD (Create, Update, Delete a datapoint)
Command
Description
TS.CREATE sensor1
Creates a timeseries
TS.CREATE sensor1 RETENTION 2678400000
Creates a timeseries with retention of 1 month (time is in milliseconds)
TS.ADD sensor1 1626434637914 26
Adds a data point to the timeseries with timestamp 1626434637914
TS.ADD sensor1 * 26
Adds a data point to the timeseries with the latest timestamp
Labels are key-value metadata we attach to data points, allowing us to group and filter. They can be either string or numeric values and are added to a timeseries on creation