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(rds *redis.Client, key string, expiredSecond int) *DistributeLock
type RenewableDistributeLock ¶
type RenewableDistributeLock struct {
*DistributeLock
}
RenewableDistributeLock renewable distribute lock
func NewRenewableDistributeLock ¶
func NewRenewableDistributeLock(rds *redis.Client, key string, expiredSecond int) *RenewableDistributeLock
Click to show internal directories.
Click to hide internal directories.