v8.11.0
版本发布时间: 2021-06-30 19:06:03
redis/go-redis最新发布版本:v9.6.1(2024-07-25 16:09:58)
Change
Remove OpenTelemetry metrics, Linked #1534 #1805
New Command
- XAutoClaim
- ZRangeStore
- ZUnion
Command More Options
- XAdd: NoMkStream+MinID+Limit
- XTrim: MinID+Limit
- XGroup: CreateConsumer
- ZAdd: GT+LT
- ZRange: ByScore+ByLex+Rev+Limit
New API
- XAutoClaim(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimCmd
- XAutoClaimJustID(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimJustIDCmd
- ZRangeStore(ctx context.Context, dst string, z ZRangeArgs) *IntCmd
- ZAddArgs(ctx context.Context, key string, args ZAddArgs) *IntCmd
- ZAddArgsIncr(ctx context.Context, key string, args ZAddArgs) *FloatCmd
- ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
- ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
- ZUnion(ctx context.Context, store ZStore) *StringSliceCmd
- ZUnionWithScores(ctx context.Context, store ZStore) *ZSliceCmd
Mark deprecated(remove in v9)
- ZAddCh
- ZIncr
- ZAddNXCh
- ZAddXXCh
- ZIncrNX
- ZIncrXX
- XTrim
- XTrimApprox
- XAddArgs.MaxLenApprox
Remarks
There is a bug in the xtrim/xadd limit option (https://github.com/redis/redis/issues/9046)