Socket
Socket
Sign inDemoInstall

cache-manager

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-manager - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

5

History.md

@@ -0,1 +1,4 @@

- 0.1.2 2013-10-13
Wrapping synchronous memory cache callbacks in process.nextTick() for the purists.
- 0.1.1 2013-10-13

@@ -21,3 +24,3 @@ Travis and Coveralls integration testing.

```javascript
var store = require('/path/my_memory_store');
var store = require('/path/to/my_memory_store');
cache = caching({store: store});

@@ -24,0 +27,0 @@ ```

8

lib/stores/memory.js

@@ -18,3 +18,3 @@ var Lru = require("lru-cache");

if (cb) {
cb(null);
process.nextTick(cb);
}

@@ -24,3 +24,5 @@ };

self.get = function (key, cb) {
cb(null, lru_cache.get(key));
process.nextTick(function () {
cb(null, lru_cache.get(key));
});
};

@@ -31,3 +33,3 @@

if (cb) {
cb(null);
process.nextTick(cb);
}

@@ -34,0 +36,0 @@ };

{
"name": "cache-manager",
"version": "0.1.1",
"version": "0.1.2",
"description": "Cache module for Node.js",

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