From 6f906c289422c9d655e194390bb871b2e276f326 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 14 Oct 2016 20:48:01 -0700 Subject: Reimplement transactions index function with promises --- redis.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'redis.js') diff --git a/redis.js b/redis.js index 85312c4e..717edc03 100644 --- a/redis.js +++ b/redis.js @@ -1,11 +1,13 @@ (function() { - var settings; + var Promise, settings; + + Promise = require('bluebird'); settings = { port: 6379, host: '127.0.0.1' }; - module.exports = require('redis').createClient(settings.port, settings.host); + module.exports = Promise.promisifyAll(require('redis')).createClient(settings.port, settings.host); }).call(this); -- cgit v1.2.3