Browse Source

Merge branch 'release/0.16.0'

feature/specify-what-to-cache 0.16.0
Bryan Donovan 10 years ago
parent
commit
8a014ee185
  1. 19
      .jscs.json
  2. 4
      History.md
  3. 1
      lib/multi_caching.js
  4. 4
      package.json

19
.jscs.json

@ -24,6 +24,7 @@
"requireParenthesesAroundIIFE": true,
"requireSpaceBeforeBlockStatements": true,
"disallowNewlineBeforeBlockStatements": true,
"requireSpacesInConditionalExpression": true,
@ -31,6 +32,18 @@
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInFunctionDeclaration": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"requireSpaceBeforeBinaryOperators": [
"+",
"-",
@ -62,6 +75,12 @@
"safeContextKeyword": "self",
"maximumLineLength": {
"value": 120,
"allowUrlComments": true,
"allowRegex": true
},
"validateIndentation": 4,
"validateParameterSeparator": ", ",

4
History.md

@ -1,3 +1,7 @@
- 0.16.0 2015-01-07
Get and pass up feature to update higher caches. (#19) - raadad
Minor style tweaks/jscs update.
- 0.15.0 2014-12-18
Moved cache queue before the store get function (up to 2x performance boost). (#18) - aletorrado
Added domain support to make sure the wrap callback function is always called - aletorrado

1
lib/multi_caching.js

@ -37,7 +37,6 @@ var multi_caching = function (caches) {
*
* When a key is found in a lower cache, all higher levels are updated
*/
self.get_and_pass_up = function(key, cb) {
get_from_highest_priority_cache(key, function(err, result, index) {
if (err) {

4
package.json

@ -1,6 +1,6 @@
{
"name": "cache-manager",
"version": "0.15.0",
"version": "0.16.0",
"description": "Cache module for Node.js",
"main": "index.js",
"scripts": {
@ -26,7 +26,7 @@
"devDependencies": {
"coveralls": "^2.3.0",
"istanbul": "^0.2.11",
"jscs": "^1.7.1",
"jscs": "^1.9.0",
"jshint": "^2.5.4",
"mocha": "^1.20.1",
"optimist": "^0.6.1",

Loading…
Cancel
Save