route-cache
Advanced tools
Comparing version 0.3.2 to 0.3.3
11
index.js
@@ -6,3 +6,12 @@ 'use strict' | ||
var redirects = {} | ||
var defaults = {max: 500, maxAge: 100} | ||
var defaults = { | ||
max: 64 * 1000000, // ~64mb | ||
length: function (n, key) { | ||
if (n.body && typeof n.body === 'string') { | ||
return n.body.length | ||
} | ||
return 1 | ||
}, | ||
maxAge: 200 // deletes stale cache older than 200ms | ||
} | ||
var cacheStore = new LRU(defaults) | ||
@@ -9,0 +18,0 @@ |
{ | ||
"name": "route-cache", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "express middleware for caching your routes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
26335
688