Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/psirenny/connect-derby

Derby session store for Connect.
https://github.com/psirenny/connect-derby

Last synced: 24 days ago
JSON representation

Derby session store for Connect.

Awesome Lists containing this project

README

        

connect-derby
=============

Derby session store for Connect.
[![Build Status](https://travis-ci.org/psirenny/connect-derby.png?branch=master)](https://travis-ci.org/psirenny/connect-derby)

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`)