TS.LIST
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.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| Always | Array of series names (empty when none match) | Same |
Error replies: NOLICENSE ... without the time-series license feature.
Examples
Section titled “Examples”127.0.0.1:6379> TS.CREATE temp:kitchen LABELS room kitchenOK127.0.0.1:6379> TS.CREATE temp:hall LABELS room hallOK127.0.0.1:6379> TS.LIST LABEL room kitchen1) "temp:kitchen"127.0.0.1:6379> TS.LIST1) "temp:hall"2) "temp:kitchen"The order of names in the full list can differ.
Compatibility
Section titled “Compatibility”HotKV-only command. RedisTimeSeries finds series by label with
TS.QUERYINDEX.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.