Versions in this module Expand all Collapse all v0 v0.1.0 Nov 7, 2019 Changes in this version + type Locker interface + Obtain func(name string, expire time.Duration) Mutex + func NewRedisLocker(redis *redis.Client) Locker + type Mutex interface + Lock func() (bool, error) + Unlock func() error + type RedisLock struct + func (rl *RedisLock) Obtain(name string, expire time.Duration) Mutex