github.com/bsm/redislock
v0.10.0
#1161 most downloaded on Go modules
bsm/redislock
What this package is like to depend on
Last release 1 months ago
27 Jun 2026
Release timing varies
gaps range from 2 weeks to 1.2 years
Some releases are documented
notes for 11 of 19 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
49 releases · first in 2019
3 releases in the last 12 months
see the full history below
Release timeline
49 releases · Jun 2019 to Jun 2026Releases
latest 49-
v0.10.1-0.20260627100305-707d1239162d27 Jun 2026 pre-releaseNothing published for this version
-
v0.10.1-0.20260520153911-76760bd8b28420 May 2026 pre-releaseNothing published for this version
-
v0.10.018 May 2026Release notes
Open source →- 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.
-
v0.9.5-0.20250609154645-6ba61a38e6e609 Jun 2025 pre-releaseNothing published for this version
-
v0.9.5-0.20240321122937-bfd385b776d121 Mar 2024 pre-releaseNothing published for this version
-
v0.9.5-0.20231124153259-f36df6a86c1924 Nov 2023 pre-releaseNothing published for this version
-
v0.9.427 Jul 2023 -
v0.9.4-0.20230727085113-788a79bd5bbf27 Jul 2023 pre-releaseNothing published for this version
-
v0.9.327 Apr 2023 -
v0.9.207 Apr 2023 -
v0.9.2-0.20230323130801-bb1982d96b3123 Mar 2023 pre-releaseNothing published for this version
-
v0.9.2-0.20230322132058-c0575c92b88522 Mar 2023 pre-releaseNothing published for this version
-
v0.9.101 Mar 2023 -
v0.9.031 Jan 2023 -
v0.8.3-0.20230127085052-450741db210127 Jan 2023 pre-releaseNothing published for this version
-
v0.8.224 Oct 2022 -
v0.8.107 Oct 2022Release notes
Open source → -
v0.8.022 Aug 2022 -
v0.7.3-0.20221212170127-d3b2b5b9f45012 Dec 2022 pre-releaseNothing published for this version
-
v0.7.3-0.20220822074616-44f3428cf25c22 Aug 2022 pre-releaseNothing published for this version
-
v0.7.3-0.20220725072335-dd6dd95c101525 Jul 2022 pre-releaseNothing published for this version
-
v0.7.229 Dec 2021 -
v0.7.2-0.20211005101629-422cf2ad0dd505 Oct 2021 pre-releaseNothing published for this version
-
v0.7.114 Jun 2021Release notes
Open source →- Make
RetryStrategythread-safe to allow re-usingOptions#31 calvinxiao - Improve test-performance, perform race testing on CI #33
v0.7.0
- Replace Options.Context with explicit ctx parameter #25
v0.6.0
v0.5.0
- Migrate to
github.com/go-redis/redis/v7#11
- Make
-
v0.7.1-0.20210614063107-68c6b842c6bb14 Jun 2021 pre-releaseNothing published for this version
-
v0.7.028 Oct 2020Nothing published for this version
-
v0.6.017 Sep 2020Nothing published for this version
-
v0.5.1-0.20200917125029-ae2d802a05c017 Sep 2020 pre-releaseNothing published for this version
-
v0.5.1-0.20200601122045-f03bfa1089a001 Jun 2020 pre-releaseNothing published for this version
-
v0.5.009 Mar 2020Nothing published for this version
-
v0.4.4-0.20220822074616-44f3428cf25c22 Aug 2022 pre-releaseNothing published for this version
-
v0.4.4-0.20200309093906-34cba6be70db09 Mar 2020 pre-releaseNothing published for this version
-
v0.4.319 Dec 2019Nothing published for this version
-
v0.4.3-0.20191219095057-3d76f17a9f1e19 Dec 2019 pre-releaseNothing published for this version
-
v0.4.211 Dec 2019Nothing published for this version
-
v0.4.111 Dec 2019Nothing published for this version
-
v0.4.1-0.20191211121648-f67b9a857b8e11 Dec 2019 pre-releaseNothing published for this version
-
v0.4.016 Sep 2019Nothing published for this version
-
v0.3.1-0.20190711115936-4542fb1868e611 Jul 2019 pre-releaseNothing published for this version
-
v0.3.024 Jun 2019Nothing published for this version
-
v0.0.0-20250609154645-6ba61a38e6e609 Jun 2025 pre-releaseNothing published for this version
-
v0.0.0-20231124153259-f36df6a86c1924 Nov 2023 pre-releaseNothing published for this version
-
v0.0.0-20230727085113-788a79bd5bbf27 Jul 2023 pre-releaseNothing published for this version
-
v0.0.0-20230427084720-06ee54ab54a827 Apr 2023 pre-releaseNothing published for this version
-
v0.0.0-20230131085949-0563cc4d0ee931 Jan 2023 pre-releaseNothing published for this version
-
v0.0.0-20221024130810-e3df4c2afda824 Oct 2022 pre-releaseNothing published for this version
-
v0.0.0-20220822074616-44f3428cf25c22 Aug 2022 pre-releaseNothing published for this version
-
v0.0.0-20191219095057-3d76f17a9f1e19 Dec 2019 pre-releaseNothing published for this version
-
v0.0.0-20190711115936-4542fb1868e611 Jul 2019 pre-releaseNothing published for this version