The following table lists RedisTimeSeries commands. See the command links for more information about each command’s syntax, arguments, and examples.

Command Description
TS.ADD Appends a sample to a time series.
TS.ALTER Updates the retention, chunk size, duplicate policy, or labels for an existing time series.
TS.CREATE Creates a new time series.
TS.CREATERULE Creates a compaction rule for downsampling.
TS.DECRBY Decreases the value of the latest sample in a time series by the specified number. Either modifies the existing sample or adds the decreased value as a new sample, depending on the timestamp option.
TS.DEL Removes all samples between two timestamps for a given time series.
TS.DELETERULE Removes a compaction rule.
TS.GET Returns the last sample in a time series.
TS.INCRBY Increases the value of the latest sample in a time series by the specified number. Either modifies the existing sample or adds the increased value as a new sample, depending on the timestamp option.
TS.INFO Returns time series information and statistics.
TS.MADD Appends multiple samples to one or more time series.
TS.MGET Returns multiple samples with labels that match the filter.
TS.MRANGE For multiple time series, runs a query against samples within a range of timestamps, from earliest to latest. Supports filtering and aggregation.
TS.MREVRANGE For multiple time series, runs a query against samples within a range of timestamps in reverse order, from latest to earliest. Supports filtering and aggregation.
TS.QUERYINDEX Returns the keys of all time series with labels that match the given filters.
TS.RANGE From the start of a single time series, runs a query against samples within a range of timestamps. Supports filtering and aggregation.
TS.REVRANGE From the end of a single time series, runs a query against samples within a range of timestamps in reverse order. Supports filtering and aggregation.