mirror of https://github.com/go-redis/redis.git
2.6 KiB
2.6 KiB
9.0.0-rc.1 (2022-10-14)
Bug Fixes
- late binding for dial hook (2ec03d9)
- reset pubsub state when unsubscribing from all channels (331e40d)
- retry dial errors from pipelines (4bb485d)
- use all provided sections (28028b3)
Features
- add ContextTimeoutEnabled to respect context timeouts and deadlines (58f7149)
- add OpenTelemetry metrics instrumentation (0dff3d1)
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 intoClusterOptions
, 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
- Reworked hook interface and added
DialHook
. - Replaced
redisotel.NewTracingHook
withredisotel.InstrumentTracing
. See example and documentation. - Replaced
*redis.Z
withredis.Z
since it is small enough to be passed as value without making an allocation. - Renamed the option
MaxConnAge
toConnMaxLifetime
. - Renamed the option
IdleTimeout
toConnMaxIdleTime
. - Removed connection reaper in favor of
MaxIdleConns
. - Removed
WithContext
sincecontext.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 viasync.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.