Releases: amyangfei/redlock-go
Releases · amyangfei/redlock-go
release v3.0.0
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, usingredlock.CacheOption
instead.- The time of
expirity
returned fromLock
API is changed fromint64
totime.Duration
.
release v2.0.3
- Support fast fail when context is canceled during lock acquiring.
release v2.0.2
- 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
- use standard errors lib
- fix data race in test case
release version v1.1.1
- Auto delete element from the KV cache when unlocking a key
release version v1.1.0
- Add simple kv cache to support concurrent lock acquire
UnLock
API is changed, add aresource name
parameter
v1.0.0
redlock-go v0.3.0
- use juju errors to record error stack
- support parsing more redis connection parameters from string
- code style clean
- add some unit test cases