A Cassandra session store for connect
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib removed the newline at the end of file Aug 29, 2013
test fixed error condition for existing columnfamily Jul 20, 2012
.gitignore
.travis.yml
LICENSE
README.md
index.js implemented connect session Jul 20, 2012
package.json update version to 0.1.3 Sep 5, 2013

README.md

build status

connect-cassandra

A Cassandra session store for connect.

Re-uses a helenus pool and creates a column family called connect_session to store the session in if required.

Installation

npm install connect-cassandra

Usage

var express = require('express'),
helenus = require('helenus'),
CassandraStore = require('connect-cassandra')(express);

var pool = new helenus.ConnectionPool({
    hosts      : ['127.0.0.1:9160'],
    keyspace   : 'test'
});

pool.connect(function(e) {
    var app = express.createServer();
    app.use(express.cookieParser());
    app.use(express.session({ secret: 'supersecretkeygoeshere', store: new CassandraStore({ pool: pool })));
});

Contributors

Pair programmed by Roy Lines and James Bloomer. Contributions from David Wetterau.