Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvHosts is returned when the provided host(s) is/are invalid ErrInvHosts = errors.New("Invalid hosts provided") // ErrPing is the error returned in case of ping failure ErrPing = errors.New("Ping failed") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Hosts []string DB int Password string MaxRetries int MinRetryBackoff time.Duration MaxRetryBackoff time.Duration DialTimeout time.Duration ReadTimeout time.Duration WriteTimeout time.Duration PoolSize int PoolTimeout time.Duration IdleTimeout time.Duration IdleCheckFrequency time.Duration }
Config struct has all the configurations required for redis
Click to show internal directories.
Click to hide internal directories.