9951 explained code solutions for 126 technologies


redis-timeseriesHow to store time series


You can store time series by setting values for time series key, created earlier (or it will be created automatically):

redis-cli TS.ADD ts_2 1644415010024 12ctrl + c
redis-cli

redis executable with RedisTimeSeries module installed

TS.ADD

adds new time/value pair to given time series

ts_2

name of time series

1644415010024

timestamp of a value to insert

12

value to insert for a given timestamp