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.4.0 to 2.5.0

config.js

3

History.md

@@ -0,1 +1,4 @@

- 2.5.0 2017-10-09
- Add explicit return in wrapPromise (#109) - @jeff-kilbride
- 2.4.0 2017-01-17

@@ -2,0 +5,0 @@ - Added ability to use a dynamic cache ttl (#65) - @philippeauriach

@@ -53,2 +53,3 @@ /** @module cacheManager/caching */

cb(null, result);
return null;
})

@@ -55,0 +56,0 @@ .catch(cb);

2

package.json
{
"name": "cache-manager",
"version": "2.4.0",
"version": "2.5.0",
"description": "Cache module for Node.js",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -32,4 +32,8 @@ [![build status](https://secure.travis-ci.org/BryanDonovan/node-cache-manager.svg)](http://travis-ci.org/BryanDonovan/node-cache-manager)

## Store Engines
* [node-cache-manager-redis](https://github.com/dial-once/node-cache-manager-redis)
* [node-cache-manager-redis](https://github.com/dial-once/node-cache-manager-redis) (uses [sol-redis-pool](https://github.com/joshuah/sol-redis-pool))
* [node-cache-manager-redis-store](https://github.com/dabroek/node-cache-manager-redis-store) (uses [node_redis](https://github.com/NodeRedis/node_redis))
* [node-cache-manager-ioredis](https://github.com/dabroek/node-cache-manager-ioredis) (uses [ioredis](https://github.com/luin/ioredis))
* [node-cache-manager-mongodb](https://github.com/v4l3r10/node-cache-manager-mongodb)

@@ -47,2 +51,4 @@

* [node-cache-manager-memory-store](https://github.com/theogravity/node-cache-manager-memory-store)
## Overview

@@ -157,3 +163,3 @@

The `ttl` can also be computed dynamicall by passing in a function. E.g.,
The `ttl` can also be computed dynamically by passing in a function. E.g.,

@@ -160,0 +166,0 @@ ```javascript

@@ -127,2 +127,21 @@ // TODO: These are really a mix of unit and integration tests.

});
it("lets us delete data using promises", function(done) {
key = support.random.string();
cache.set(key, value)
.then(function() {
return cache.get(key);
}).then(function(val) {
assert.equal(val, value);
}).then(function() {
return cache.del(key);
}).then(function() {
return cache.get(key);
}).then(function(val) {
assert.strictEqual(val, undefined);
}).then(done)
.catch(function(err) {
done(err);
});
});
});

@@ -129,0 +148,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