Versions in this module Expand all Collapse all v0 v0.1.2 Mar 30, 2021 v0.1.1 Mar 9, 2021 Changes in this version + const DefaultLockTTL + const DefaultRetryDelay + const DefaultRetryTimes + func Simple(key string, handler Handler, options ...Option) error + type Handler func() error + type Option func(*option) + func WithLockTTL(ttl time.Duration) Option + func WithRedisClient(client RedisClient) Option + func WithRetryDelay(delay time.Duration) Option + func WithRetryTimes(times uint8) Option + type RedisClient interface + Del func(keys ...string) *redis.IntCmd + SetNX func(key string, value interface{}, expiration time.Duration) *redis.BoolCmd + TTL func(key string) *redis.DurationCmd