github go-redis/redis v8.11.0

Change

Remove OpenTelemetry metrics, Linked #1534 #1805

New Command

  1. XAutoClaim
  2. ZRangeStore
  3. ZUnion

Command More Options

  1. XAdd: NoMkStream+MinID+Limit
  2. XTrim: MinID+Limit
  3. XGroup: CreateConsumer
  4. ZAdd: GT+LT
  5. ZRange: ByScore+ByLex+Rev+Limit

New API

  1. XAutoClaim(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimCmd
  2. XAutoClaimJustID(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimJustIDCmd
  3. ZRangeStore(ctx context.Context, dst string, z ZRangeArgs) *IntCmd
  4. ZAddArgs(ctx context.Context, key string, args ZAddArgs) *IntCmd
  5. ZAddArgsIncr(ctx context.Context, key string, args ZAddArgs) *FloatCmd
  6. ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
  7. ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
  8. ZUnion(ctx context.Context, store ZStore) *StringSliceCmd
  9. ZUnionWithScores(ctx context.Context, store ZStore) *ZSliceCmd

Mark deprecated(remove in v9)

  1. ZAddCh
  2. ZIncr
  3. ZAddNXCh
  4. ZAddXXCh
  5. ZIncrNX
  6. ZIncrXX
  7. XTrim
  8. XTrimApprox
  9. XAddArgs.MaxLenApprox

Remarks

There is a bug in the xtrim/xadd limit option (https://github.com/redis/redis/issues/9046)

latest releases: v8.11.3, extra/redisotel/v8.11.3, extra/rediscmd/v8.11.3...
2 months ago