Skip to content

Commit a0088f0

Browse files
committed
Implemented a full featured MemoryStore without leaks
1 parent 3c7a35b commit a0088f0

File tree

2 files changed

+276
-125
lines changed

2 files changed

+276
-125
lines changed

Diff for: index.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ var uid = require('uid-safe').sync
2121
, signature = require('cookie-signature')
2222

2323
var Session = require('./session/session')
24-
, MemoryStore = require('./session/memory')
2524
, Cookie = require('./session/cookie')
2625
, Store = require('./session/store')
2726

@@ -42,6 +41,15 @@ exports = module.exports = session;
4241
exports.Store = Store;
4342
exports.Cookie = Cookie;
4443
exports.Session = Session;
44+
45+
/**
46+
* Create a MemoryStore constructor for express-session
47+
*/
48+
var MemoryStore = (require('./session/memory'))(exports)
49+
50+
/**
51+
* Export the MemoryStore constructor
52+
*/
4553
exports.MemoryStore = MemoryStore;
4654

4755
/**

0 commit comments

Comments
 (0)