Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

TS.LIST

Last updated
TS.LIST [LABEL label value]
Group
Time series
Complexity
O(N), N being the series on the node
Arity
-1 (at least 1 words, counting the command name)
Flags
read-only, fast
HotKV Cloud
Performance and Scale
On-Premise
requires the time-series license feature

TS.LIST returns the names of all time series on the node, in no particular order. With LABEL label value, it returns only the series whose label label equals value; an empty value ("") matches any series that has the label at all.

In cluster mode, the command lists the series of the node you send it to.

Case RESP2 RESP3
Always Array of series names (empty when none match) Same

Error replies: NOLICENSE ... without the time-series license feature.

127.0.0.1:6379> TS.CREATE temp:kitchen LABELS room kitchen
OK
127.0.0.1:6379> TS.CREATE temp:hall LABELS room hall
OK
127.0.0.1:6379> TS.LIST LABEL room kitchen
1) "temp:kitchen"
127.0.0.1:6379> TS.LIST
1) "temp:hall"
2) "temp:kitchen"

The order of names in the full list can differ.

HotKV-only command. RedisTimeSeries finds series by label with TS.QUERYINDEX.

TS.CREATE, TS.INFO