client.get("ping", (err, data) => in redis hangs my node js code
This is my server call to route const redis = require("redis"); const client = redis.createClient(); client.connect(); module.exports = client; This is my API route app.get("/api/ping", middleWare.cacheRouteOne, RouteController.routeOne); This is my cache route function exports.cacheRouteOne = (req, res, next) => {…