fix(deps): update module github.com/redis/go-redis/v9 to v9.21.0#46
Open
sparedark wants to merge 1 commit into
Open
fix(deps): update module github.com/redis/go-redis/v9 to v9.21.0#46sparedark wants to merge 1 commit into
sparedark wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v9.20.1→v9.21.0Release Notes
redis/go-redis (github.com/redis/go-redis/v9)
v9.21.0: 9.21.0Compare Source
This is a minor release adding new features and bug fixes. There are no breaking changes; upgrading from 9.20.x is a drop-in replacement.
🚀 Highlights
Zero-copy
GetToBuffer/SetFromBufferTwo new
StringCmdablemethods let callers read and write Redis string values directly into and from pre-allocated byte buffers, eliminating the per-call payload allocation thatGet/Setincur:GetToBufferdecodes the bulk reply straight into the caller-ownedbuf(no intermediate allocation); a buffer that is too small returns an error after draining the payload, so the connection stays aligned for the next reply.SetFromBufferis provided for API symmetry — it dispatches to the same[]bytewriter path asSet(ctx, key, buf, 0)and produces byte-identical output on the wire. Available on*Client,*ClusterClient,*Ring,*ConnandPipeliner.(#3834) by @ndyakov
Explicit
LIMIT 0for stream trimmingRedis treats
XTRIM/XADDapproximate-trim (~)LIMIT 0as "disable the trimming effort cap entirely", which differs from omittingLIMIT(the implicit100 * stream-node-max-entriesdefault). The command builders previously only emittedLIMITwhenlimit > 0, so callers could never send an explicitLIMIT 0. Following theKeepTTL = -1precedent, the newXTrimLimitDisabled = -1sentinel now emits an explicitLIMIT 0;limit == 0keeps the historical no-LIMITbehavior, so existing callers produce byte-identical commands.(#3848) by @TheRealMal
✨ New Features
GetToBuffer/SetFromBufferonStringCmdableand theZeroCopyStringCmdresult type, reading/writing string values into caller-owned buffers without per-call payload allocation (#3834) by @ndyakovXTrimLimitDisabledsentinel:XTRIM/XADDapproximate trimming can now send an explicitLIMIT 0to disable the trim effort cap, via the newXTrimLimitDisabled = -1sentinel (#3848) by @TheRealMalchannel.initHealthChecknow bounds thePingit issues with a fresh per-check timeout context (the exportedpingTimeout/reconnectTimeout) instead ofcontext.TODO(), so a stuck health-check Ping can no longer block indefinitely (#3819) by @abdellaniUNWATCHinTx.Close: a transaction now tracks whether aWATCHis still active (watchArmed) and only issuesUNWATCHonClosewhen it is, removing an extra round trip on the commonWATCH/.../EXECand no-keyWatchpaths while never returning a connection to the pool with an active watch (#3854) by @fcostaoliveira🐛 Bug Fixes
maintnotificationsModeAutofail-open:ModeAutonow stays fail-open when the server does not support maintenance notifications — connections are retired and tracking is guarded during downgrade so the client keeps working instead of erroring (#3853) by @terrorobe👥 Contributors
We'd like to thank all the contributors who worked on this release!
@abdellani, @fcostaoliveira, @ndyakov, @terrorobe, @TheRealMal
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.