returnnil,nil,fmt.Errorf("redis cache has either been not defined in container registry config or is not usable and it is required by urlcache middleware to work")
}
redisCache,ok:=v.(*iredis.Cache)
redisCache,ok:=v.(iredis.CacheInterface)
if!ok{
returnnil,nil,fmt.Errorf("redis cache passed to the middleware cannot be used as the type is wrong: %T",v)// this should not happen either