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.0.2 to 0.0.3

4

index.js

@@ -19,3 +19,3 @@ var Eidetic = require('eidetic');

var body = string instanceof Buffer ? string.toString() : string;
cachestore.put(req.path, body, ttl);
cachestore.put(req.url, body, ttl);
send.call(this, body);

@@ -26,2 +26,2 @@ };

}
};
};
{
"name": "route-cache",
"version": "0.0.2",
"version": "0.0.3",
"description": "express middleware for caching your routes",

@@ -22,3 +22,3 @@ "main": "index.js",

"dependencies": {
"eidetic": "0.1.1"
"eidetic": "0.1.1"
},

@@ -25,0 +25,0 @@ "devDependencies": {

@@ -9,2 +9,7 @@ # Route-Cache

## Install
```sh
npm install route-cache
```
## How to use

@@ -25,10 +30,10 @@ ```javascript

### Future plans / todos
## Future plans / todos
- tests (via mocha & supertest)
- client-side Cache-Control
- support for distributed caches (redis or memcache)
- accomodate for "Dog piling" when routes logic is extra slow
- accomodate for "Dog piling/thundering herd" when routes logic is extra slow
#### License
------
The MIT License (MIT)

@@ -54,2 +59,2 @@

OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
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