From ec114bcb746b8d34c05374b8beafd23eec1ff2d2 Mon Sep 17 00:00:00 2001 From: Bryan Donovan Date: Wed, 3 Feb 2016 10:28:56 -0800 Subject: [PATCH 1/2] passing ttl of 0 to lruCache, upgrading to lru-cache 4.0.0 --- lib/stores/memory.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/stores/memory.js b/lib/stores/memory.js index 7480382..00da94f 100644 --- a/lib/stores/memory.js +++ b/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 diff --git a/package.json b/package.json index 7c5b274..4f4563f 100644 --- a/package.json +++ b/package.json @@ -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", From 79214cc897812e3a7820eb71cd0a76ea75e881ae Mon Sep 17 00:00:00 2001 From: Bryan Donovan Date: Wed, 3 Feb 2016 10:30:04 -0800 Subject: [PATCH 2/2] 1.4.0 --- History.md | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/History.md b/History.md index 614a16a..a8dd962 100644 --- a/History.md +++ b/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 diff --git a/package.json b/package.json index 4f4563f..b6e10fa 100644 --- a/package.json +++ b/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": {