From 8f18c67da29fe2b8bbf0d21b815f30db94b79e68 Mon Sep 17 00:00:00 2001 From: Bryan Donovan Date: Sun, 13 Oct 2013 18:16:32 -0700 Subject: [PATCH] fixing redis example --- examples/redis_example/example.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/redis_example/example.js b/examples/redis_example/example.js index 43f6f94..f6c3905 100644 --- a/examples/redis_example/example.js +++ b/examples/redis_example/example.js @@ -1,6 +1,7 @@ // Setup: // npm install redis // npm install sol-redis-pool +// node examples/redis_example/example.js var cache_manager = require('../../'); var redis_store = require('./redis_store'); @@ -36,6 +37,7 @@ redis_cache.wrap(key, function (cb) { get_user(user_id, cb); }, function (err, user) { console.log(user); + process.exit(); }); }); @@ -43,5 +45,3 @@ redis_cache.wrap(key, function (cb) { // Returning user from slow database. // { id: 123, name: 'Bob' } // { id: 123, name: 'Bob' } - -process.exit();