Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedLock ¶
type RedLock struct {
// contains filtered or unexported fields
}
func NewRedLock ¶
func NewRedLock( redis connectors.DBConnector[*redis.Client, *types.RedisTx], opts ...RedLockOption, ) (*RedLock, error)
type RedLockOption ¶
type RedLockOption func(rl *RedLock)
func WithExpireOption ¶
func WithExpireOption(expire time.Duration) RedLockOption
func WithRetryCountOption ¶
func WithRetryCountOption(retryCount int) RedLockOption
func WithRetryDelayOption ¶
func WithRetryDelayOption(delay time.Duration) RedLockOption
Click to show internal directories.
Click to hide internal directories.