cache-manager
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -1,5 +0,8 @@ | ||
- 2.0.0 2015-03-13 | ||
- 2.0.1 2016-04-18 | ||
- Fixed triggering callback in wrap after it was queued (#48) - @theorm | ||
- 2.0.0 2016-03-13 | ||
- Removing domain integration (#38), no longer actively supporting node 0.10.x. | ||
- 1.5.0 2015-03-13 | ||
- 1.5.0 2016-03-13 | ||
- npm bumps, making sure global.Promise is not defined in node 0.10 memory store test. | ||
@@ -6,0 +9,0 @@ |
@@ -110,3 +110,4 @@ /** @module cacheManager/caching */ | ||
if (!self._isCacheableValue(data)) { | ||
return cb(); | ||
callbackFiller.fill(key, null, data); | ||
return; | ||
} | ||
@@ -113,0 +114,0 @@ |
{ | ||
"name": "cache-manager", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Cache module for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -185,4 +185,4 @@ [![build status](https://secure.travis-ci.org/BryanDonovan/node-cache-manager.png)](http://travis-ci.org/BryanDonovan/node-cache-manager) | ||
You can use your own custom store by creating one with the same API as the | ||
build-in memory stores (such as a redis or memcached store). To use your own store, you can either pass | ||
in an instance of it, or pass in the path to the module. | ||
built-in memory stores (such as a redis or memcached store). To use your own store just pass | ||
in an instance of it. | ||
@@ -189,0 +189,0 @@ E.g., |
@@ -691,2 +691,23 @@ // TODO: These are really a mix of unit and integration tests. | ||
}); | ||
context("when wrapped function returns a non cacheable value once", function() { | ||
it("second call to 'wrap' triggers the callback", function(done) { | ||
var key = support.random.string(); | ||
// 1. | ||
cache.wrap(key, function(cb) { | ||
cb(null, undefined); | ||
}, function(err, result) { | ||
assert.equal(result, undefined); | ||
}); | ||
// 2. | ||
cache.wrap(key, function(cb) { | ||
cb(null, undefined); | ||
}, function(err, result) { | ||
assert.equal(result, undefined); | ||
done(); | ||
}); | ||
}); | ||
}); | ||
}); | ||
@@ -693,0 +714,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132794
2842