connect-cassandra-cql
Session store for connect using the official Cassandra CQL3 binary protocol.
Installation
npm install connect-cassandra-cql
Usage
Express 4
var express = cookieParser = session = CassandraCqlStore = session cassandra = ; var client = contactPoints: 'localhost' keyspace: 'myKeyspace';var config = client: client; var app = ;app;app;
Express 3
var express = CassandraCqlStore = express cassandra = ; var client = contactPoints: 'localhost' keyspace: 'myKeyspace';var config = client: client; var app = ;app;app;
config is an object with these keys:
client: node-cassandra-cql object. mandatory.
ttl: how long, in seconds, to save the session. if the session cookie have maxAge, it will be used, otherwise, 86400 (one day).
table: the table name to use. defaults to 'connect_session'.
readConsistency: cassandra read consistency, defaults to 1.
writeConsistency: cassandra write consistency, defaults to any.
License
connect-cassandra-cql is distributed under the MIT license.