You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-library/vendor/github.com/go-redis/redis/v9/CHANGELOG.md

3.1 KiB

9.0.0-rc.2 (2022-11-26)

Bug Fixes

Features

  • add HasErrorPrefix (d3d8002)
  • add support for SINTERCARD command (bc51c61)

v9 UNRELEASED

Added

  • Added support for RESP3 protocol. Contributed by @monkey92t who has done a lot of work recently.
  • Added ContextTimeoutEnabled option that controls whether the client respects context timeouts and deadlines. See Redis Timeouts for details.
  • Added ParseClusterURL to parse URLs into ClusterOptions, for example, redis://user:password@localhost:6789?dial_timeout=3&read_timeout=6s&addr=localhost:6790&addr=localhost:6791.
  • Added metrics instrumentation using redisotel.IstrumentMetrics. See documentation

Changed

  • Removed asynchronous cancellation based on the context timeout. It was racy in v8 and is completely gone in v9.
  • Reworked hook interface and added DialHook.
  • Replaced redisotel.NewTracingHook with redisotel.InstrumentTracing. See example and documentation.
  • Replaced *redis.Z with redis.Z since it is small enough to be passed as value without making an allocation.
  • Renamed the option MaxConnAge to ConnMaxLifetime.
  • Renamed the option IdleTimeout to ConnMaxIdleTime.
  • Removed connection reaper in favor of MaxIdleConns.
  • Removed WithContext since context.Context can be passed directly as an arg.
  • Removed Pipeline.Close since there is no real need to explicitly manage pipeline resources and it can be safely reused via sync.Pool etc. Pipeline.Discard is still available if you want to reset commands for some reason.

Fixed

  • Improved and fixed pipeline retries.
  • As usual, added more commands and fixed some bugs.