Versions in this module Expand all Collapse all v2 v2.0.4 Oct 15, 2024 Changes in this version + type Locker struct + Locker *redislock.Client + func GetLocker(rdb redis.UniversalClient) *Locker + func (l *Locker) Obtain(ctx context.Context, key string, ttl int, opt ...*redislock.Options) (*redislock.Lock, error) + func (l *Locker) ObtainWaitExponentialRetry(ctx context.Context, key string, ttl int, maxWaitTime int) (*redislock.Lock, error) + func (l *Locker) ObtainWaitRetry(ctx context.Context, key string, ttl int, retryCount int) (*redislock.Lock, error) Other modules containing this package github.com/afret0/wheel