Documentation ¶ Index ¶ func NewRedis(c *Config) *redis.Client type Config func (r *Config) Url() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewRedis ¶ func NewRedis(c *Config) *redis.Client Types ¶ type Config ¶ type Config struct { Host string `yaml:"host"` Port int `yaml:"port"` Database int `yaml:"database"` Password string `yaml:"password"` PoolSize int `yaml:"poolSize"` MinIdleConn int `yaml:"minIdleConn"` } func (*Config) Url ¶ func (r *Config) Url() string Source Files ¶ View all Source files config.goredis.go Click to show internal directories. Click to hide internal directories.