skip to Main Content

node-redis Does retry_strategy have a default value?

Redis connection was valid even when redis-server was stopped and restarted without the retry_strategy option. const conn = redis.createClient({ host: 'redisUrl', port: 'redisPort', ... socket_keepalive : true }); redisClient.on('connect', () => { console.log(`connect`); }).on('error', () => { console.log(`error`); }); Why?

VIEW QUESTION

Redis – Cors policy in socketio express

I am getting following error: Access to XMLHttpRequest at 'http://localhost:8001/socket.io/?EIO=3&transport=polling&t=NWrnTy1' from origin 'http://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. my node server code: //import express from "express"; //import http from "http";…

VIEW QUESTION

Problems optimizing redis

I have some webscraped data. I'm using redis as my server and fetching data from nodejs and displaying it in react. This is what I have: 2 redis keys both ~ 200kb (so far, this will become ~10-20 mb in…

VIEW QUESTION
Back To Top
Search