Level-Session-Store
A session storage module for expressjs/session that uses level/level to store data.
Note: this is different than rvagg/node-level-session in that it requires express-session to operate. It is merely a backing store.
Installation
npm install --save level-session-store
Usage
var app = ;var session = ;var LevelStore = session;var mw = ;app;
So long as you have level installed (it is listed as a peerDependency) this will create a new level db and use it for storing sessions.
You don't like the default location it puts it?
var app = ;var session = ;var LevelStore = session;var mw = ;app;
You already have a level instance you want it to use? Not a problem.
var app = ;var session = ;var LevelStore = session;var mw = ;app;
This will invoke "name munging" -- the keys for session stuff will prefixed with _session
. You don't like that munging?
var app = ;var session = ;var LevelStore = session;var mw = ;app;
License
Copyright 2015 Scripto. Available under the Apache 2 license.