Skip to content

Commit 2ee61f0

Browse files
authored
Correct retention_msecs value (#2232)
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.
1 parent 41b537d commit 2ee61f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/redismodules.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ These are the commands for interacting with the `RedisTimeSeries module <https:/
134134
135135
import redis
136136
r = redis.Redis()
137-
r.ts().create(2, retension_msecs=5)
137+
r.ts().create(2, retension_msecs=5000)
138138
139139
.. automodule:: redis.commands.timeseries.commands
140140
:members: TimeSeriesCommands

0 commit comments

Comments
 (0)