in src/middleware/cache.go [36:51]
func NewCache(redisHost, redisPort string, enabled bool) (*Cache, error) {
c := &Cache{}
if redisHost == "" {
return nil, fmt.Errorf("redis host is blank")
}
if redisPort == "" {
return nil, fmt.Errorf("redis port is blank")
}
pool := c.InitPool(redisHost, redisPort)
c.enabled = enabled
c.redisPool = pool
return c, nil
}