Skip to content

medea/connect-medea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Installation

$ npm install connect-medea

Options

  • dirname: The directory to use for Medea's key-value storage.

Usage

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' }));

License

MIT

About

A Medea-backed session store for Connect.

Resources

License

Stars

Watchers

Forks

Packages

No packages published