@@ -1820,16 +1820,16 @@ def xadd(self, name, fields, id='*', maxlen=None, approximate=True,
18201820 fields: dict of field/value pairs to insert into the stream
18211821 id: Location to insert this record. By default it is appended.
18221822 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.
18261824 approximate: actual stream length may be slightly more than maxlen
18271825 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.
18281828 limit: specifies the maximum number of entries to retrieve
18291829 """
18301830 pieces = []
18311831 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``` "
18331833 "may be specified" )
18341834
18351835 if maxlen is not None :
@@ -2201,8 +2201,10 @@ def xtrim(self, name, maxlen=None, approximate=True, minid=None,
22012201 Trims old messages from a stream.
22022202 name: name of the stream.
22032203 maxlen: truncate old stream messages beyond this size
2204+ Can't be specified with minid.
22042205 approximate: actual stream length may be slightly more than maxlen
22052206 minid: the minimum id in the stream to query
2207+ Can't be specified with maxlen.
22062208 limit: specifies the maximum number of entries to retrieve
22072209 """
22082210 pieces = []
0 commit comments