# Functions
GetRedis 获取redis连接 @param name 配置名 @param defaultDB 使用哪个数据库 @return *redis.Client.
No description provided by the author
InitMysqlConf 函数功能说明 Example: c = map[string]Conf{ "localhost": { Host: viper.GetString("REDIS_LOCALHOST_RW_HOST"), Password: viper.GetString("REDIS_LOCALHOST_RW_PASSWORD"), Port: viper.GetInt("REDIS_LOCALHOST_RW_PORT"), PoolSize: viper.GetInt("REDIS_LOCALHOST_POOL_SIZE"), MinIdleConn: viper.GetInt("REDIS_LOCALHOST_MIN_IDLE_CONN"), IdleTimeout: viper.GetDuration("REDIS_LOCALHOST_IDLE_TIMEOUT"), }, } @param c.
NewClient 获取新客户端 @param conf 配置名 @param db 使用哪个数据库 @return *redis.Client.
# Variables
No description provided by the author