Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 705 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 705 Bytes

connect-derby

Derby session store for Connect.
Build Status

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)