connect-medea

Medea session store for Connect.

Connect Medea

connect-medea is a Connect session store backed by Medea, a persistent, embedded key-value store. This implementation is based on connect-redis.

$ npm install connect-medea
  • dirname: The directory to use for Medea's key-value storage.

For Connect:

var connect = require('connect');
var MedeaStore = require('connect-medea')(connect);
 
var options = {
  dirname: __dirname + '/data'
};
 
var store = new MedeaStore(options);
 
connect()
  .use(connect.session({ store: store, secret: 'el chupacabra' }));

For Express:

var express = require('express');
var MedeaStore = require('connect-medea')(express);
 
var options = {
  dirname: __dirname + '/data'
};
 
var store = new MedeaStore(options);
 
var app = express();
app.use(express.session({ store: store, secret: 'el chupacabra' }));

MIT