cache-manager
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -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 @@ ``` |
@@ -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", |
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
58215
1138