Nodejs Redis İntegration

hello friends, I’m trying to develop a chat application with nodejs and I can’t connect nodejs to redis. There is no one around to help me. I need your help. Thanks

  • Since I can put 1 media file, I am putting the code part and the error description is Client Closed Error: The client is closed

Hi there,

Are you running Redis locally? Can you connect via redis-cli? What value do you have for REDIS_URI and REDIS_PORT, etc? Have you confirmed that your connection parameters are correct?

1 Like

I installed and compiled Redis from source code. I can access interface with src/redis-cli and set-get from terminal without any problem. I am giving my connection values with environment variables.

REDIS_URI = 127.0.0.1
REDIS_PORT = 6379
REDIS_PASS =

My goal is to provide redis session store implementation in my nodejs chat application.