Strong Cluster Connect Store API

module.exports(connectOrSession)

Return the ClusterStore constructor that can be called to create a session Store to use with the express-session middleware.

Example

 // express v3.x
 var session = express.session;
 var SessionStore = require('strong-cluster-connect-store')(session);

 // express v4.x
 var session = require('express-session');
 var SessionStore = require('strong-cluster-connect-store')(session);

 // express v3.x (backwards compatibility)
 var SessionStore = require('strong-cluster-connect-store')(express);
Arguments
Name Type Description
connectOrSession Object

express session or connect/express itself