Plugin for connect app, that store sessions in Redis.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
README.md
package.json

README.md

Redis-based session store.

Plugin for connect apps.

Usage:

var connect = require('connect'),
    RedisSessionStore = require('redis-session-store');

var store = new RedisSessionStore( {reapInterval: 600000, maxAge: 600000 * 3} );
var server = connect.createServer(
    connect.logger(),
    connect.bodyDecoder(),
    connect.cookieDecoder(),
    connect.session( { store: store, secret: 'forty two' }),
    ....
);

server.listen(8080);

You can use prefix in constructor options to specify prefix for session keys. Default value is 'redis-store-'.