Versions in this module Expand all Collapse all v1 v1.0.25 Dec 22, 2023 Changes in this version type Locker + Client func() rueidis.Client v1.0.8 Jun 12, 2023 Changes in this version + var ErrLockerClosed = errors.New("locker closed") + var ErrNotLocked = errors.New("not locked") + type Locker interface + Close func() + TryWithContext func(ctx context.Context, name string) (context.Context, context.CancelFunc, error) + WithContext func(ctx context.Context, name string) (context.Context, context.CancelFunc, error) + func NewLocker(option LockerOption) (Locker, error) + type LockerOption struct + ClientBuilder func(option rueidis.ClientOption) (rueidis.Client, error) + ClientOption rueidis.ClientOption + ExtendInterval time.Duration + FallbackSETPX bool + KeyMajority int32 + KeyPrefix string + KeyValidity time.Duration + NoLoopTracking bool + TryNextAfter time.Duration