Skip to content

Releases: amyangfei/redlock-go

release v3.0.0

16 Jun 11:50
Compare
Choose a tag to compare

Note part APIs are not compatible when upgrading from v2.0.x to v3.0.x

  • Add a context.Context parameter in lock constructor.
  • RedLock.SetCache is removed, using redlock.CacheOption instead.
  • The time of expirity returned from Lock API is changed from int64 to time.Duration.

release v2.0.3

15 Jun 10:17
Compare
Choose a tag to compare
  • Support fast fail when context is canceled during lock acquiring.

release v2.0.2

15 Jun 10:12
Compare
Choose a tag to compare
  • Use in-memory key-value cache to cache acquired lock item, which fixes #4
  • Refactor Lock API, use time.Duration

release version v1.1.2

02 Oct 10:45
Compare
Choose a tag to compare
  • use standard errors lib
  • fix data race in test case

release version v1.1.1

02 Oct 05:03
Compare
Choose a tag to compare
  • Auto delete element from the KV cache when unlocking a key

release version v1.1.0

01 Nov 03:48
Compare
Choose a tag to compare
  1. Add simple kv cache to support concurrent lock acquire
  2. UnLock API is changed, add a resource name parameter

v1.0.0

10 Jan 04:53
Compare
Choose a tag to compare
add new redlock unit test

redlock-go v0.3.0

16 Dec 08:41
Compare
Choose a tag to compare
  1. use juju errors to record error stack
  2. support parsing more redis connection parameters from string
  3. code style clean
  4. add some unit test cases

v0.2

17 Sep 08:25
Compare
Choose a tag to compare

Add License