Documentation ¶
Index ¶
- func NewRedisLocker(host string, port uint, password string, db int, poolSize, minIdleConns int, ...) (lock.Locker, error)
- type RedisLocker
- func (locker *RedisLocker) Delay(ctx context.Context, key string) (bool, error)
- func (locker *RedisLocker) Lock(ctx context.Context, key string) (bool, error)
- func (locker *RedisLocker) LockWithAutoDelay(ctx context.Context, key string) (bool, error)
- func (locker *RedisLocker) UnLock(ctx context.Context, key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisLocker ¶
type RedisLocker struct {
// contains filtered or unexported fields
}
func (*RedisLocker) LockWithAutoDelay ¶
Click to show internal directories.
Click to hide internal directories.