connect-diskDB
diskDB [https://github.com/arvindr21/diskDB] session store for Connect.
Installation
$ npm install connect-diskdb
Usage
(in a typical express > v4.x app)
var app = session = SessionStore = session; // create a DiskDB Session Store var options = path: '' // path where the diskDB based file should be stored name: '' // name of the database db: '' // (optional) instead of passing 'path' and 'name' for the db, an existing diskDB instance can be passed. ; var diskDBSessionStore = options; // enable sessions with diskDBSessionStore app; // start the app app;
Debug
To enable 'connect-diskdb' debug logs in your app use 'connect:diskdb' as Node Debug environment.
Example: NODE_DEBUG=connect:diskdb node index.js