Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRedisClient ¶
func GetRedisClient(conf *RedisConfig) (*redis.Client, error)
Types ¶
type RedisConfig ¶
type RedisConfig struct { Address string `yaml:"address"` Username string `yaml:"username"` Password string `yaml:"password"` DB int `yaml:"db"` UseTLS bool `yaml:"use_tls"` MasterName string `yaml:"sentinel_master_name"` SentinelUsername string `yaml:"sentinel_username"` SentinelPassword string `yaml:"sentinel_password"` SentinelAddresses []string `yaml:"sentinel_addresses"` }
Click to show internal directories.
Click to hide internal directories.