I am newbie to nodejs and was working on a project where i need to send back result to client after some calculations. I wanted to store res object in redis so that after calculations i can send message back to client. But i am not able to store it due to circular dependencies. I tried using circular-json npm library to stringify res object and then circular-parse res string back to res object; but now i can't use res.send() or res.json() methods.
Please guide.
> I am newbie to nodejs and was working on a project where i need to send back result to client after some calculations. I wanted to store res object in redis so that after calculations i can send message back to client. But i am not able to store it due to circular dependencies. I tried using circular-json npm library to stringify res object and then circular-parse res string back to res object; but now i can't use res.send() or res.json()
Normally you would just have a variable storing the response object in memory. Why do you need it to be in redis? What good would that do?
Normally you would just have a variable storing the response object in memory. Why do you need it to be in redis? What good would that do?
댓글 없음:
댓글 쓰기