skip to Main Content

Redis keeps failing on Windows 10 with Node.JS : Error: Redis connection to 127.0.0.1:6379 failed – connect ECONNREFUSED 127.0.0.1:6379

Consider the code : const mongoose = require("mongoose"); const redis = require("redis"); const util = require("util"); const redisUrl = "redis://127.0.0.1:6379"; const client = redis.createClient(redisUrl); client.hget = util.promisify(client.hget); const exec = mongoose.Query.prototype.exec; mongoose.Query.prototype.cache = function(options = {}) { this.useCache = true;…

VIEW QUESTION
Back To Top
Search