TS.GET

Since 1.1.0Time series

Syntax

TS.GET key [LATEST]
  • Flags: readonly
  • ACL categories: @read, @slow, @timeseries
  • Arity: -2

Returns the newest sample of the time series at key.

Reply

  • An array of the timestamp and the value.
  • An empty array for a series with no samples; nil if the key does not exist.

Examples

> TS.GET temp:1
1) (integer) 4000
2) "23"