Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 531 Bytes

add-new-value-to-time-series.md

File metadata and controls

20 lines (16 loc) · 531 Bytes

Add new value to time series

redis-cli TS.ADD ts_2 \* 15
  • redis-cli - redis executable with lib:RedisTimeSeries module installed
  • TS.ADD - adds new time/value pair to given time series
  • ts_2 - name of time series
  • \* - will set current time (or specify timestamp in milliseconds) for a given value
  • 15 - value to store for a given time

Example:

redis-cli TS.ADD ts_2 \* 15
(integer) 1644417216955