Documentation ¶ Index ¶ Variables type Lock func New(cnf *config.Config, addrs []string, db, retries int) Lock func (r Lock) Lock(key string, unixTsToExpireNs int64) error func (r Lock) LockWithRetries(key string, unixTsToExpireNs int64) error Constants ¶ This section is empty. Variables ¶ View Source var ( ErrRedisLockFailed = errors.New("redis lock: failed to acquire lock") ) Functions ¶ This section is empty. Types ¶ type Lock ¶ type Lock struct { // contains filtered or unexported fields } func New ¶ func New(cnf *config.Config, addrs []string, db, retries int) Lock func (Lock) Lock ¶ func (r Lock) Lock(key string, unixTsToExpireNs int64) error func (Lock) LockWithRetries ¶ func (r Lock) LockWithRetries(key string, unixTsToExpireNs int64) error Source Files ¶ View all Source files redis.go Click to show internal directories. Click to hide internal directories.