namespace is undefined
seivan opened this issue · comments
var Redback = exports.Redback = function () {
this.client = arguments[0] instanceof redis.RedisClient ?
arguments[0] : redis.createClient.apply(this, arguments);
var options = arguments[1] instanceof Object ?
arguments[1] : arguments[2];
this.namespace = options.namespace || '';
}
Line 47 in Redback.js
options.namespace is undefined and causes a crash.
I solved it temporarily by using
var redis = require('redis').createClient();
var redback = require('redback').use(redis, {namespace: "LOL"});
Fixed in 0.2.6
I should've checked this pull request a bit more before merging
My apologies, I was negligent in checking for undefined.