0.0.4 • Published 12 years ago

connect-level v0.0.4

Weekly downloads
2
License
-
Repository
github
Last release
12 years ago

Connect-level

Connect level is a Connect session store backed by levelup. It aims to be a simple to use as MemoryStore while providing session persistence beyond the life of the process.

This store requires no external processes, databases, etc.

Installation

$ npm install connect-level

Usage

var connect = require('connect')
, LevelStore = require('connect-level')(connect)

connect().use(connect.session({ store: new RedisStore(), secret: 'super sekkrit' }))

Options

There are options you can pass to the store if you like, but you don't need to.

var options = {
  path: './data/sessions' // Optional. Defaults to ./connect-level-sessionstore
  interval: 6000 // Optional. How often the database prunes expired sessions in ms. Defaults to 1 hour, however expiry is checked as keys are read out.

connect().use(connect.session({ store: new RedisStore(options), secret: 'super sekkrit' }))

License

BSD

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago