summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com>2021-10-18 04:16:29 -0400
committerGitHub <noreply@github.com>2021-10-18 11:16:29 +0300
commit87705815d31e5cf07b5d4b777eec0d2cf51aca1c (patch)
tree38a9542b6a281e60030ab9cf69675c29f8ba71b1
parentcbbade97be48422cce0b203270a8e39a9bc5f519 (diff)
downloadredis-py-87705815d31e5cf07b5d4b777eec0d2cf51aca1c.tar.gz
Normalize minid and maxlen docs (#1593)
Co-authored-by: Chayim <chayim@users.noreply.github.com>
-rw-r--r--redis/commands.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/redis/commands.py b/redis/commands.py
index f20acfe..69aae20 100644
--- a/redis/commands.py
+++ b/redis/commands.py
@@ -1820,16 +1820,16 @@ class Commands:
fields: dict of field/value pairs to insert into the stream
id: Location to insert this record. By default it is appended.
maxlen: truncate old stream members beyond this size.
- Can't be specify with minid.
- minid: the minimum id in the stream to query.
- Can't be specify with maxlen.
+ Can't be specified with minid.
approximate: actual stream length may be slightly more than maxlen
nomkstream: When set to true, do not make a stream
+ minid: the minimum id in the stream to query.
+ Can't be specified with maxlen.
limit: specifies the maximum number of entries to retrieve
"""
pieces = []
if maxlen is not None and minid is not None:
- raise DataError("Only one of ```maxlen``` or ```minid```",
+ raise DataError("Only one of ```maxlen``` or ```minid``` "
"may be specified")
if maxlen is not None:
@@ -2201,8 +2201,10 @@ class Commands:
Trims old messages from a stream.
name: name of the stream.
maxlen: truncate old stream messages beyond this size
+ Can't be specified with minid.
approximate: actual stream length may be slightly more than maxlen
minid: the minimum id in the stream to query
+ Can't be specified with maxlen.
limit: specifies the maximum number of entries to retrieve
"""
pieces = []