summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorearthgecko <96679+earthgecko@users.noreply.github.com>2022-06-19 02:39:56 +0100
committerGitHub <noreply@github.com>2022-06-19 04:39:56 +0300
commit2ee61f0b5c54df54ebfc382eea2661d709ce9c73 (patch)
treedb245a50b60c976e8f9bbdd92c31e47f471bda97
parent41b537d9195ee8e4ab897951ba6563b367c28b7d (diff)
downloadredis-py-2ee61f0b5c54df54ebfc382eea2661d709ce9c73.tar.gz
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.
-rw-r--r--docs/redismodules.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/redismodules.rst b/docs/redismodules.rst
index e4d36b1..86a323a 100644
--- a/docs/redismodules.rst
+++ b/docs/redismodules.rst
@@ -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