Skip to content

Commit

Permalink
Correct retention_msecs value (#2232)
Browse files Browse the repository at this point in the history
The `retention_msecs` takes a millisecond value not a seconds value, having checked and tested redis/commands/timeseries/commands.py is not adjusting seconds to milliseconds it is passing it through as is, therefore the statement in this doc is incorrect as it creates a time series with a retention period of 5 milliseconds not 5 seconds as stated.
  • Loading branch information
earthgecko committed Jun 19, 2022
1 parent 41b537d commit 2ee61f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/redismodules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ These are the commands for interacting with the `RedisTimeSeries module <https:/
import redis
r = redis.Redis()
r.ts().create(2, retension_msecs=5)
r.ts().create(2, retension_msecs=5000)
.. automodule:: redis.commands.timeseries.commands
:members: TimeSeriesCommands
Expand Down

0 comments on commit 2ee61f0

Please sign in to comment.