Skip to content

Instantly share code, notes, and snippets.

@webjay webjay/gist:5325563
Created Apr 6, 2013

What would you like to do?
Redis client
var redis = require('redis');
module.exports = function () {
client = redis.createClient(process.env.REDIS_PORT, process.env.REDIS_HOST);
if (process.env.REDIS_AUTH) {
client.on('error', function (err) {
console.error('Redis error', err);
return client;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.