Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisPoolFromURL ¶
func NewRedisPoolFromURL(rawURL string, opts ...OptionFunc) (*redis.Pool, error)
NewRedisPoolFromURL returns a new *redigo/redis.Pool configured for the supplied url. If the url includes a password in the standard form it is used to AUTH against the redis server
Types ¶
type DialURLFunc ¶ added in v0.0.2
DialURLFunc describes the type implemented by redis.DialURL, useful for changing the behavior of a redis Dialer.
type OptionFunc ¶ added in v0.0.2
type OptionFunc func(*redisDialer)
OptionFunc sets redisDialer options
func WithDialURLFunc ¶ added in v0.0.2
func WithDialURLFunc(df DialURLFunc) OptionFunc
WithDialURLFunc specifies an alternative DialURLFunc to use when dialing via URL.
func WithPasswords ¶ added in v0.0.2
func WithPasswords(passes ...string) OptionFunc
WithPasswords specifies additional passwords to try authenticating with when dialing
Click to show internal directories.
Click to hide internal directories.