Documentation ¶ Index ¶ func NewRedis(opts ...Option) standard.ILock type Option func WithExpiry(expiry time.Duration) Option func WithName(name string) Option func WithRedisPool(pool *redigo.Pool) Option func WithTries(tries int) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewRedis ¶ func NewRedis(opts ...Option) standard.ILock Types ¶ type Option ¶ type Option interface { // contains filtered or unexported methods } func WithExpiry ¶ func WithExpiry(expiry time.Duration) Option func WithName ¶ func WithName(name string) Option func WithRedisPool ¶ func WithRedisPool(pool *redigo.Pool) Option func WithTries ¶ func WithTries(tries int) Option Source Files ¶ View all Source files redis.go Click to show internal directories. Click to hide internal directories.