mirror of https://github.com/go-redis/redis.git
4.8 KiB
4.8 KiB
9.0.0 (2023-01-30)
Bug Fixes
- conn: releaseConn should be executed correctly (21e1954)
- implement
redis.Hook
(v9) forrediscensus.TracingHook
(#2367) (805bfc2), closes #2266
9.0.0-rc.4 (2023-01-24)
9.0.0-rc.3 (2023-01-24)
Bug Fixes
- 386 platform test (701b1d0)
- change serialize key "key" to "redis" (913936b)
- fix the withHook func (0ed4a44)
- read cursor as uint64 (b88bd93)
- redisotel: correct metrics.DialHook attrs (#2331) (7c4b924)
- remove comment (4ce9046)
- remove mutex from pipeline (6525bbb)
- tags for structToMap "json" -> "key" (07e15d2)
- test code (1fdcbf8)
Features
- add ClientName option (a872c35)
- add SORT_RO command (ca063fd)
- add zintercard cmd (bb65dcd)
- appendArgs adds to read the structure field and supplements the test (0064199)
- enable struct on HSet (bf334e7)
- hook mode is changed to FIFO (97697f4)
- redisotel: add code attributes (3892986)
- scan: add Scanner interface (#2317) (a4336cb)
v9 UNRELEASED
Added
- Added support for RESP3 protocol. It was contributed by @monkey92t who has done the majority of work in this release.
- 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 - Added
redis.HasErrorPrefix
to help working with errors.
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
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. - Changed Pipelines to not be thread-safe any more.
Fixed
- Improved and fixed pipeline retries.
- As usually, added support for more commands and fixed some bugs.