func GetRedisConfiguration() (redis.Configuration, error) {
	db, err := goredis.ParseURL(getEnv("REDIS_URL", "localhost:6379"))

	if err != nil {
		return redis.Configuration{}, err
	}

	config := redis.Configuration{
		Address:  db.Addr,
		Password: db.Password,
		Database: db.DB,
	}

	return config, config.Validate()
}
// GetRedisConfiguration returns the redis configuration
GetRedisConfiguration returns the redis configuration
// GetRedisConfiguration returns the redis configuration
func GetRedisConfiguration() (redis.Configuration, error) {
	db, err := goredis.ParseURL(getEnv("REDIS_URL", "localhost:6379"))
	if err != nil {
		return redis.Configuration{}, err
	}
	config := redis.Configuration{
		Address:  db.Addr,
		Password: db.Password,
		Database: db.DB,
	}
	return config, config.Validate()
}
func GetRedisConfiguration ( ) ( redis . Configuration , error ) { db , err := goredis . ParseURL ( getEnv ( " " , " " ) ) if err != nil { return redis . Configuration { } , err } config := redis . Configuration { Address : db . Addr , Password : db . Password , Database : db . DB , } return config , config . Validate ( ) }
GetRedisConfiguration returns the redis configuration
GetRedisConfiguration returns the redis configuration