Loading
build(deps): update module github.com/bsm/redislock to v0.10.0
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| github.com/bsm/redislock | require | minor | v0.9.4 → v0.10.0 |
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
bsm/redislock (github.com/bsm/redislock)
v0.10.0
- Feature: New ObtainMulti method to acquire multiple locks atomically #70
- Feature:
Lock.Refreshnow accepts anOptions.RetryStrategyand retries transient redis errors. - Fix: a lost lock (refresh against a key whose value no longer matches) now returns
ErrNotObtainedimmediately instead of being silently retried by the retry loop. - Fix:
withRetrysurfaces the last transient error when retries are exhausted, instead of masking it asErrNotObtained. - Fix: when retries are interrupted by a cancelled context, return
errors.Join(ErrNotObtained, ctx.Err())(or the last transient error joined withctx.Err()) so callers can match on both witherrors.Is. - Docs: clarify
ExponentialBackoffformula and the behaviour of itsmin/maxarguments (first wait is 4ms; passmin >= 16msfor a sensible floor, non-zeromaxto cap growth). - Chore: bump
go-redis/v9to v9.19.0 and raise minimum Go to 1.25 #86. - Docs: add an external watchdog example showing how to periodically call
Lock.Refreshfrom caller code, keeping refresh cadence and error handling out of the library.
Configuration
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
- If you want to rebase/retry this MR, check this box
This MR has been generated by Mend Renovate CLI.
Edited by GitLab Dependency Bot