TSCARD

    This command returns the number of entires in the given time series.

    • If the given key is associated with non-timeseries data, an error is raised.
    • If the given key is not associated with any data, 0 is returned.

    You can do this as shown below.

    1. "OK"
      1. "OK"
      1. (integer) 3

        tsadd, , tsrem,, tsrevrangebytime,