Documentation ¶ Index ¶ func GetConnection(redisName ...string) *redis.Client func RegisterConnection(configs map[string]*RedisClient) type RedisClient Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetConnection ¶ func GetConnection(redisName ...string) *redis.Client func RegisterConnection ¶ func RegisterConnection(configs map[string]*RedisClient) Types ¶ type RedisClient ¶ type RedisClient struct { Host string `yaml:"host"` Password string `yaml:"password"` Port int `yaml:"port"` IdleTimeout int `yaml:"idle_timeout"` DB int `yaml:"db"` PoolSize int `yaml:"pool_size"` // contains filtered or unexported fields } Source Files ¶ View all Source files redis.go Click to show internal directories. Click to hide internal directories.