I'm trying to connect my go app to a heroku redis db. With this code:
(using "github.com/go-redis/redis/v8")
opt, err := redis.ParseURL("redis://:PASSWORD@AWS-HOST:15670/0")
if err != nil {
panic(err)
}
rdb := redis.NewClient(opt)
usu := rdb.Get(ctx, userID)
But i'm getting this error:
get 61d4bb472db95c17de8c: wsarecv: An existing connection was forcibly closed by the remote host.
I appreciate any help !