Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrLockExists redis lock exists ErrRedisLockExists = errors.New("redis lock already exists") // ErrRedisClientInvalid redis client invalid ErrRedisClientInvalid = errors.New("redis client is nil") // ErrRedisLockKeyInvalid lock key invalid ErrRedisLockKeyInvalid = errors.New("lock key is empty") )
View Source
var DefaultExpire = 10
DefaultExpire 加锁的key默认过期时间,单位s
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.