Redis client connects to the redis remote server but can't read or write on it Redis client connects to the redis remote server but can't read or write on it express express

Redis client connects to the redis remote server but can't read or write on it


I solved it first by adding

client.on("error", function (err) {    console.log("Error " + err);});

so i could see what was wrong (indeed my mistake was to think that the redisClient belongs to the connect-redis module so i didn't see all these available options on the node_redis module..) and that added code showed me that the problem was like in this thread and thanks to this answer and also, i saw that it was better to move the get methode inside the set's callback as the remote server would answer asynchronuesly..