0

I am connecting to redis on localhost using:-

 var redisClient = require('redis').createClient({
     host: 'localhost',
     port: 6379,
     db: 0,
     pass: 'RedisPASS'
   });

How do i connect to RedisToGo on heroku. I'm using node.js I have gone thru question but cdn't follow much.

var redisClient = require('redis').createClient({
    host: 'http: //abc.com',
    port: 9344,
    db: 0,
    requirepass: 'abc1234'
  });

The above does not work.

Where port no. 9344 and requirepass details i got from RedisToGo app details.

Community
  • 1
  • 1
Sangram Singh
  • 7,161
  • 15
  • 50
  • 79

0 Answers0