//
pkg.gl
Category
github.com/xiaojiaoyu100/lizard
redispattern
lockguard
package
0.6.20
Repository:
https://github.com/xiaojiaoyu100/lizard.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
2
Files
186 SLOC
#
Functions
IsLockNotObtained
IsLockNotObtained reports a lock which is not obtained.
New
New 生成一个锁,同一个LockGuard实例不可用于并发环境中,并发环境中应该 新开LockGuard,否则同一个LockGuard处于不同协程中,会相互重置,见reset.
WithRetryTimes
WithRetryTimes configures lock retry times.
#
Structs
Lock
Lock redis lock.
LockGuard
LockGuard provides distributed lock.
#
Type aliases
Error
Error error.
Handler
Handler signature.
Setter
Setter 配置lock.