UNPKG
http-teapot-comment
Version:
latest (0.1.0)
0.1.0
A comment system for your website
github.com/http-teapot/comment
http-teapot/comment
http-teapot-comment
/
lib
/
session.js
11 lines
(8 loc)
•
275 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var
config =
require
(
'../config'
) , session =
require
(
'express-session'
) ,
RedisStore
=
require
(
'connect-redis'
)(session) , client =
new
RedisStore
({
port
: config.
storage
.
port
,
host
: config.
storage
.
host
});
var
session = {
store
: client, };
module
.
exports
= session;