redis client require #4

Merged
merged 1 commit into from Jan 20, 2012
View
@@ -1,6 +1,7 @@
-var resque = exports
-var EventEmitter = require ('events').EventEmitter
-var sys = require ('sys')
+var resque = exports;
+var EventEmitter = require ('events').EventEmitter;
+var sys = require ('sys');
+var redis = require ('redis');
var processAlive = function (pid, cb) {
require('child_process').exec (
@@ -12,7 +13,7 @@ var processAlive = function (pid, cb) {
}
var connectToRedis = function (options) {
- return require ('redis').createClient (options.port, options.host)
+ return redis.createClient (options.port, options.host);
}