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

route-cache

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

route-cache - npm Package Compare versions

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

2

package.json
{
"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",

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