0

i have setup wsl in my windows server machine and started the redis service there. from the windows command prompt i can use wsl redis-cli and run the redis commands. but my node application is not able to detect the redis inside wsl. i am using redis in my node project.

is there any third party module i need to add to able to connect, this answer showed to add it in python.

Shubham Shaw
  • 841
  • 1
  • 11
  • 24
  • See if [this](https://stackoverflow.com/a/63455770/11810933) answers your question. Different software, but same principal. – NotTheDr01ds May 27 '22 at 19:38

1 Answers1

0

the wsl's redis port was readily available. const client = redis.createClient(); just kept the createClient() config blank and it connected.

Shubham Shaw
  • 841
  • 1
  • 11
  • 24