Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LockRedis ¶ added in v1.0.47
type LockRedis struct {
// contains filtered or unexported fields
}
func NewLockRedis ¶ added in v1.0.47
func NewLockRedis(client *dorm.RedisClient) *LockRedis
func (*LockRedis) Lock ¶ added in v1.0.47
func (r *LockRedis) Lock(ctx context.Context, key string, val string, ttl time.Duration) (resp string, err error)
Lock 上锁 key 锁名 val 锁内容 ttl 锁过期时间
Click to show internal directories.
Click to hide internal directories.