9951 explained code solutions for 126 technologies


redis-timeseriesSet time series retention


redis-cli TS.ALTER ts_2 RETENTION 1000000ctrl + c
redis-cli

redis executable with RedisTimeSeries module installed

TS.ALTER

change specified time series

ts_2

name of time series

RETENTION

sets retention in milliseconds from the time of last event in time series

1000000

store values for a given time series only for 1000 seconds