Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DLockInterface ¶
type DLockInterface interface {
Lock(key string, duration time.Duration) (bool, error)
Release(key string) (bool, error)
}
func NewRedisDLock ¶
func NewRedisDLock(instance redis.UniversalClient) DLockInterface
Click to show internal directories.
Click to hide internal directories.