Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LockerRedis ¶
type LockerRedis struct {
// contains filtered or unexported fields
}
redis 分布式锁
func NewLockerRedis ¶
func NewLockerRedis(key, val string, ttlSecond int32) *LockerRedis
func (*LockerRedis) Check ¶
func (o *LockerRedis) Check() (exist bool, err error)
func (*LockerRedis) Get ¶
func (o *LockerRedis) Get() (ok bool, err error)
func (*LockerRedis) Release ¶
func (o *LockerRedis) Release() (err error)
Click to show internal directories.
Click to hide internal directories.