Browse Source

Merge branch 'release/1.4.0'

master
Bryan Donovan 9 years ago
parent
commit
c428b0e753
  1. 3
      History.md
  2. 2
      lib/stores/memory.js
  3. 4
      package.json

3
History.md

@ -1,3 +1,6 @@
- 1.4.0 2016-02-03
- Passing ttl of 0 to lruCache, upgrading to lru-cache 4.0.0
- 1.3.0 2016-01-26
- Promise support (#39, #24) - @PuKoren

2
lib/stores/memory.js

@ -7,7 +7,7 @@ var memoryStore = function(args) {
var ttl = args.ttl;
var lruOpts = {
max: args.max || 500,
maxAge: ttl ? ttl * 1000 : null,
maxAge: (ttl || ttl === 0) ? ttl * 1000 : null,
dispose: args.dispose,
length: args.length,
stale: args.stale

4
package.json

@ -1,6 +1,6 @@
{
"name": "cache-manager",
"version": "1.3.0",
"version": "1.4.0",
"description": "Cache module for Node.js",
"main": "index.js",
"scripts": {
@ -21,7 +21,7 @@
"license": "MIT",
"dependencies": {
"async": "^0.9.0",
"lru-cache": "2.6.5"
"lru-cache": "4.0.0"
},
"devDependencies": {
"coveralls": "^2.3.0",

Loading…
Cancel
Save