/*
** Module dependencies
*/
var kue = require('kue');
var redis = require('./redis');

exports.jobs = kue.createQueue({ disableSearch: true });
exports.Job = kue.Job;

/*
** Module dependencies
*/
var kue = require('kue');
var redis = require('./redis');

exports.jobs = kue.createQueue({
    disableSearch: true,
    redis: {
        createClientFactory: function() {
            return redis.createClient();
        }
    }
});

exports.Job = kue.Job;

Rewrite kue redis connection