@@ -1820,16 +1820,16 @@ def xadd(self, name, fields, id='*', maxlen=None, approximate=True,
1820
1820
fields: dict of field/value pairs to insert into the stream
1821
1821
id: Location to insert this record. By default it is appended.
1822
1822
maxlen: truncate old stream members beyond this size.
1823
- Can't be specify with minid.
1824
- minid: the minimum id in the stream to query.
1825
- Can't be specify with maxlen.
1823
+ Can't be specified with minid.
1826
1824
approximate: actual stream length may be slightly more than maxlen
1827
1825
nomkstream: When set to true, do not make a stream
1826
+ minid: the minimum id in the stream to query.
1827
+ Can't be specified with maxlen.
1828
1828
limit: specifies the maximum number of entries to retrieve
1829
1829
"""
1830
1830
pieces = []
1831
1831
if maxlen is not None and minid is not None :
1832
- raise DataError ("Only one of ```maxlen``` or ```minid```" ,
1832
+ raise DataError ("Only one of ```maxlen``` or ```minid``` "
1833
1833
"may be specified" )
1834
1834
1835
1835
if maxlen is not None :
@@ -2201,8 +2201,10 @@ def xtrim(self, name, maxlen=None, approximate=True, minid=None,
2201
2201
Trims old messages from a stream.
2202
2202
name: name of the stream.
2203
2203
maxlen: truncate old stream messages beyond this size
2204
+ Can't be specified with minid.
2204
2205
approximate: actual stream length may be slightly more than maxlen
2205
2206
minid: the minimum id in the stream to query
2207
+ Can't be specified with maxlen.
2206
2208
limit: specifies the maximum number of entries to retrieve
2207
2209
"""
2208
2210
pieces = []
0 commit comments