I have a lambda function that fetches data from the YouTube V3 API and it gets called on page load. I’m using Redis to cache this result so that it doesn’t hit the YouTube API everytime the page is loaded and this works great locally.
However when I deployed it the first time, I got Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379
Okay maybe I need to change the url to the Redis server. So I changed it to be redis://effpv.netlify.com:6379
thinking maybe that was it. Now I get no errors, that’s cool. But it doesn’t do anything at all now. That’s not so cool.
Any Ideas? Here’s my Lambda function in it’s entirety https://gist.github.com/TravisBallard/9505619548e8f56795b276877c467db7