Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DistributeLock ¶
type DistributeLock struct {
// contains filtered or unexported fields
}
func NewDistributeLock ¶
func NewDistributeLock(rdbOpt *redis.Options, lockName string) (lock *DistributeLock)
func (*DistributeLock) Lock ¶
func (lock *DistributeLock) Lock() (bool, error)
func (*DistributeLock) UnLock ¶
func (lock *DistributeLock) UnLock() (bool, error)
Click to show internal directories.
Click to hide internal directories.