Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
Redis implements the AppService interface.
type RedisConfig ¶
type RedisConfig struct { // Url contains hostname:port, e.g. localhost:6379 URL string `yaml:"url"` // Password if left empty uses no empty Password string `yaml:"password"` // DB defaults to db 0 DB int `yaml:"db"` // Maximum number of socket connections. // Default is 10 connections per every CPU as reported by runtime.NumCPU. PoolSize int `yaml:"poolSize"` // Dial timeout for establishing new connections. Default is 5 seconds. DialTimeout time.Duration `yaml:"dialTimeout"` // Number of retries upon initial connect. Default is 5 times. Set -1 to disable ConnectMaxRetries int `yaml:"connectMaxRetries"` // Time between retries for initial connect attempts. Default is 5 seconds. ConnectRetryDuration time.Duration `yaml:"connectRetryDuration"` }
Click to show internal directories.
Click to hide internal directories.