cachetree-redis
Advanced tools
Comparing version
@@ -13,2 +13,7 @@ /** | ||
/** | ||
* Empty noop function | ||
*/ | ||
var noop = function() {}; | ||
/** | ||
* Export RedisStore | ||
@@ -141,3 +146,3 @@ */ | ||
len; | ||
if (typeof cb !== 'function') { | ||
if (cb && typeof cb !== 'function') { | ||
args.push(cb); | ||
@@ -178,3 +183,3 @@ cb = null; | ||
} | ||
this.client.hmset(key, data, cb); | ||
this.client.hmset(key, data, cb || noop); | ||
} | ||
@@ -288,3 +293,3 @@ } else { | ||
}, this); | ||
this.client.del(args, cb); | ||
this.client.del(args, cb || noop); | ||
} else { | ||
@@ -291,0 +296,0 @@ if (typeof cb === 'function') cb(new Error('Invalid key')); |
{ | ||
"name": "cachetree-redis", | ||
"description": "Redis storage backend for Cachetree", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"author": "David Wood <bitprobe@gmail.com>", | ||
@@ -6,0 +6,0 @@ "repository": { |
28778
0.28%779
0.52%