@@ -1743,8 +1743,6 @@ type XAddArgs struct {
17431743 Values interface {}
17441744}
17451745
1746- // XAdd a.Limit has a bug, please confirm it and use it.
1747- // issue: https://github.com/redis/redis/issues/9046
17481746func (c cmdable ) XAdd (ctx context.Context , a * XAddArgs ) * StringCmd {
17491747 args := make ([]interface {}, 0 , 11 )
17501748 args = append (args , "xadd" , a .Stream )
@@ -2081,22 +2079,14 @@ func (c cmdable) XTrimMaxLen(ctx context.Context, key string, maxLen int64) *Int
20812079 return c .xTrim (ctx , key , "maxlen" , false , maxLen , 0 )
20822080}
20832081
2084- // XTrimMaxLenApprox LIMIT has a bug, please confirm it and use it.
2085- // issue: https://github.com/redis/redis/issues/9046
2086- // cmd: XTRIM key MAXLEN ~ maxLen LIMIT limit
20872082func (c cmdable ) XTrimMaxLenApprox (ctx context.Context , key string , maxLen , limit int64 ) * IntCmd {
20882083 return c .xTrim (ctx , key , "maxlen" , true , maxLen , limit )
20892084}
20902085
2091- // XTrimMinID No `~` rules are used, `limit` cannot be used.
2092- // cmd: XTRIM key MINID minID
20932086func (c cmdable ) XTrimMinID (ctx context.Context , key string , minID string ) * IntCmd {
20942087 return c .xTrim (ctx , key , "minid" , false , minID , 0 )
20952088}
20962089
2097- // XTrimMinIDApprox LIMIT has a bug, please confirm it and use it.
2098- // issue: https://github.com/redis/redis/issues/9046
2099- // cmd: XTRIM key MINID ~ minID LIMIT limit
21002090func (c cmdable ) XTrimMinIDApprox (ctx context.Context , key string , minID string , limit int64 ) * IntCmd {
21012091 return c .xTrim (ctx , key , "minid" , true , minID , limit )
21022092}
0 commit comments