9951 explained code solutions for 126 technologies


redis-timeseriesGet time series data by interval


redis-cli TS.RANGE ts_2 1644415000020 1644417094099ctrl + c
redis-cli

redis executable with RedisTimeSeries module installed

TS.RANGE

return time series values for a given time range

ts_2

name of time series

1644415000020

timestamp to start from

1644417094099

timestamp to end range


Usage example

redis-cli TS.RANGE ts_2 1644415000020 1644417094099
output
1) 1) (integer) 1644416919386
   2) 12
2) 1) (integer) 1644416925338
   2) 14
3) 1) (integer) 1644417094095
   2) 15