Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cache-manager

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-manager - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

7

History.md

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc