Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLockFailed = errors.New("lock failed") ErrUnlockFailed = errors.New("unlock failed") )
Functions ¶
This section is empty.
Types ¶
type OptionFunc ¶
type OptionFunc func(o *Options)
func KeyPrefix ¶
func KeyPrefix(prefix string) OptionFunc
func LockTimeout ¶
func LockTimeout(duration time.Duration) OptionFunc
func WaitRetry ¶
func WaitRetry(duration time.Duration) OptionFunc
type RedisSync ¶
type RedisSync struct { Opt *Options Redis *redis.Client }
func NewRedisSync ¶
func NewRedisSync(client *redis.Client, opts ...OptionFunc) *RedisSync
Click to show internal directories.
Click to hide internal directories.