connect-derby
v0.1.0
Published
Derby session store for Connect.
Downloads
2
Readme
connect-derby
Derby session store for Connect.
Installation
$ npm install connect-derby
Usage
var derby = require('derby');
var express = require('express');
var DerbyStore = require('connect-derby')(express)
var app = express();
...
var store = derby.createStore({
db: {db: mongo, redis: redis}
});
...
app.use(express.session({
secret: 'APP SECRET',
store: new DerbyStore({store: store})
}))
Options
collection
Collection (optional, default:sessions
)