Browse Source

Merge branch 'release/1.2.0'

feature/remove-domains
Bryan Donovan 9 years ago
parent
commit
576501efe9
  1. 3
      History.md
  2. 4
      lib/multi_caching.js
  3. 2
      package.json

3
History.md

@ -1,3 +1,6 @@
- 1.2.0 2015-10-07
- using `isCacheableValue` in `getFromHighestPriorityCache` and `getAndPassUp` (#32).
- 1.1.0 2015-07-22 - 1.1.0 2015-07-22
- Allow stores to override isCacheableValue. - @PuKoren - Allow stores to override isCacheableValue. - @PuKoren
- Allow overriding ttl in memory cache's set function. - @zhudan - Allow overriding ttl in memory cache's set function. - @zhudan

4
lib/multi_caching.js

@ -43,7 +43,7 @@ var multiCaching = function(caches, options) {
if (err) { if (err) {
return next(err); return next(err);
} }
if (result) { if (self._isCacheableValue(result)) {
// break out of async loop. // break out of async loop.
return cb(err, result, i); return cb(err, result, i);
} }
@ -78,7 +78,7 @@ var multiCaching = function(caches, options) {
cb(err, result); cb(err, result);
if (result !== undefined && index) { if (self._isCacheableValue(result) && index) {
var cachesToUpdate = caches.slice(0, index); var cachesToUpdate = caches.slice(0, index);
async.each(cachesToUpdate, function(cache, next) { async.each(cachesToUpdate, function(cache, next) {
// We rely on the cache module's default TTL // We rely on the cache module's default TTL

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "cache-manager", "name": "cache-manager",
"version": "1.1.0", "version": "1.2.0",
"description": "Cache module for Node.js", "description": "Cache module for Node.js",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

Loading…
Cancel
Save