Available in: Redis Stack
Time complexity: O(1)
Get the last sample.
TS.GET key
Array-reply, specifically:
The returned array will contain:
TS.GET complexity is O(1).
127.0.0.1:6379> TS.GET temperature:2:32
1) (integer) 1548149279
2) "23"
127.0.0.1:6379> redis-cli TS.GET empty_ts
(empty array)