@@ -1743,8 +1743,6 @@ type XAddArgs struct {
1743
1743
Values interface {}
1744
1744
}
1745
1745
1746
- // XAdd a.Limit has a bug, please confirm it and use it.
1747
- // issue: https://github.com/redis/redis/issues/9046
1748
1746
func (c cmdable ) XAdd (ctx context.Context , a * XAddArgs ) * StringCmd {
1749
1747
args := make ([]interface {}, 0 , 11 )
1750
1748
args = append (args , "xadd" , a .Stream )
@@ -2081,22 +2079,14 @@ func (c cmdable) XTrimMaxLen(ctx context.Context, key string, maxLen int64) *Int
2081
2079
return c .xTrim (ctx , key , "maxlen" , false , maxLen , 0 )
2082
2080
}
2083
2081
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
2087
2082
func (c cmdable ) XTrimMaxLenApprox (ctx context.Context , key string , maxLen , limit int64 ) * IntCmd {
2088
2083
return c .xTrim (ctx , key , "maxlen" , true , maxLen , limit )
2089
2084
}
2090
2085
2091
- // XTrimMinID No `~` rules are used, `limit` cannot be used.
2092
- // cmd: XTRIM key MINID minID
2093
2086
func (c cmdable ) XTrimMinID (ctx context.Context , key string , minID string ) * IntCmd {
2094
2087
return c .xTrim (ctx , key , "minid" , false , minID , 0 )
2095
2088
}
2096
2089
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
2100
2090
func (c cmdable ) XTrimMinIDApprox (ctx context.Context , key string , minID string , limit int64 ) * IntCmd {
2101
2091
return c .xTrim (ctx , key , "minid" , true , minID , limit )
2102
2092
}
0 commit comments