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
.