In AWS i am using ElastiCache Redis server and using node as backEnd and "promise-redis" package
this is how i am tried to do to connect to my redis server endpoint
client = redis.createClient({
host: '**my redis primary endpoint**',
port: 6379
});
this worked for a while but after adding some lines of code not related to redis it gave me this error
error: connect ECONNREFUSED 127.0.0.1:6379
it seems trying to connect to the local server and ignoring the host endpoint i gave to him
and when i changed the port to any number like 6300
it gave the same error with the default port number too
error: connect ECONNREFUSED 127.0.0.1:6379
i am so confused please help !!!!
console.log
them and check what the actual value is.. – Arnett