Mar 21, 2022
This is cause this article is missing a key point, after creating the client you need to connect to it, add this after createClient line:
client.connect();
client.on("connect", function () {
console.log("Connected to Redis");
});
This is cause this article is missing a key point, after creating the client you need to connect to it, add this after createClient line:
client.connect();
client.on("connect", function () {
console.log("Connected to Redis");
});