Browse Source

Merge branch 'hotfix/0.1.2.1'

hotfix/0.7.1 0.1.2.1
Bryan Donovan 11 years ago
parent
commit
1a8afc577d
  1. 3
      History.md
  2. 3
      examples/redis_example/redis_store.js
  3. 3
      package.json

3
History.md

@ -1,3 +1,6 @@
- 0.1.2.1 2013-10-31
Fixing unreleased connection in redis example.
- 0.1.2 2013-10-13 - 0.1.2 2013-10-13
Wrapping synchronous memory cache callbacks in process.nextTick() for the purists. Wrapping synchronous memory cache callbacks in process.nextTick() for the purists.

3
examples/redis_example/redis_store.js

@ -39,7 +39,8 @@ function redis_store(args) {
if (err) { return cb(err); } if (err) { return cb(err); }
conn.get(key, function (err, result) { conn.get(key, function (err, result) {
if (err) { pool.release(conn); return cb(err); } pool.release(conn);
if (err) { return cb(err); }
cb(null, JSON.parse(result)); cb(null, JSON.parse(result));
}); });
}); });

3
package.json

@ -1,6 +1,6 @@
{ {
"name": "cache-manager", "name": "cache-manager",
"version": "0.1.2", "version": "0.1.2.1",
"description": "Cache module for Node.js", "description": "Cache module for Node.js",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
@ -12,6 +12,7 @@
}, },
"keywords": [ "keywords": [
"cache", "cache",
"redis",
"lru-cache", "lru-cache",
"memory cache", "memory cache",
"multiple cache" "multiple cache"

Loading…
Cancel
Save