memcache-plus
Advanced tools
Comparing version
@@ -283,3 +283,3 @@ /** | ||
Client.prototype.run = function(command, args, cb) { | ||
var deferred = misc.defer(); | ||
var deferred = misc.defer(args[0]); | ||
@@ -286,0 +286,0 @@ if (this.ready()) { |
@@ -137,2 +137,6 @@ /** | ||
this.data = null; | ||
} else if (data.toString().substr(0, 9) === 'NOT_FOUND') { | ||
this.queue.shift(); | ||
deferred.resolve(data); | ||
this.data = null; | ||
} else if (data.toString() !== '') { | ||
@@ -139,0 +143,0 @@ this.data = data; |
{ | ||
"name": "memcache-plus", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Better memcache for node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -286,2 +286,8 @@ require('chai').should(); | ||
}); | ||
it('does not blow up if deleting key that does not exist', function() { | ||
var key = chance.word(); | ||
return cache.delete(key); | ||
}); | ||
}); | ||
@@ -288,0 +294,0 @@ |
38410
0.9%937
0.86%