Skip to content

Commit

Permalink
use ioredis
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharmor committed Oct 13, 2016
1 parent 3e54081 commit 34ee5e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions express-session-hapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var Boom = require('boom');
var Hoek = require('hoek');
var Joi = require('joi');
var redis = require('redis');
var Redis = require('ioredis');
var signature = require('cookie-signature');

var internals = {};
Expand Down Expand Up @@ -39,7 +39,7 @@ internals.implementation = function (server, options) {
settings.appendNext = (settings.appendNext ? 'next' : '');
}

var redisClient = redis.createClient(settings.redis);
var redisClient = new Redis(settings.redis);

function decodeCookieValue(val) {
val = decodeURIComponent(val).trim();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"cookie-signature": "1.0.6",
"hoek": "3.0.4",
"joi": "6.6.1",
"redis": "2.6.0-1"
"ioredis": "2.4.0"
},
"engines": {
"node": ">=4"
Expand Down

0 comments on commit 34ee5e8

Please sign in to comment.