Go Redis Redis Versions Save

Redis Go client

v9.0.0-beta.1

1 year ago

Please refer to CHANGELOG.md for details

v8.11.5

2 years ago

Please refer to CHANGELOG.md for details

v8.11.4

2 years ago

Please refer to CHANGELOG.md for details

v8.11.2

2 years ago

Important changes:

Revert #1824, because it will have a significant impact on the connection pool(#1849) We will re-add this feature in v9.

Users who have already used v8.11.1, need to upgrade immediately.

v8.11.1

2 years ago

Enhancement:

  • DBSize,ScriptLoad,ScriptFlush and ScriptExists should use hook. (#1811)
  • Added FIFO option to connection pool, set option Options.PoolFIFO to true. (#1820)
  • The connection is checked before use, it will increase the CPU time by 5-10% (#1824)
  • Check Failing() before serving random node. (#1825)

Command:

  • RPOP command supports Count option (redis-server >= 6.2)
  • New cmd: GeoSearch, GeoSearchStore (redis-server >= 6.2)

Thanks: @ktaekwon000 @hidu @AnatolyRugalev

v7.4.1

2 years ago

fix #1823

v8.11.0

2 years ago

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)

v8.10.0

2 years ago

go-redis no longer depends on OpenTelemetry. add support redis-command: ZInter ZDiffStore