<commit_before>Express Session RethinkDB
=================

###RethinkDB session store for Express 4.x 

*Inspired by <NAME>'s [Connect Redis](https://github.com/visionmedia/connect-redis)*

*Inspired by guillaumervls [Connect RethinkDB](https://github.com/guillaumervls/connect-rethinkdb)*

##Installation

```npm install express-session-rethinkdb```

##Getting started

Note that you must already have Express Session already installed (```npm install express-session```).

```javascript
var express = require('express');
var session = require('express-session');
var RDBStore = require('express-session-rethinkdb')(session);

var rDBStore = new RDBStore({
  clientOptions: {
    db: 'test'
    host: 'localhost',
    port: '28015'
  },
  table: 'session',
  sessionTimeout: 86400000,
  flushInterval: 60000
});

var app = express();
app.use( require('cookie-parser')() );
app.use( session({<commit_msg>A little correction in the Readme file<commit_after>Express Session RethinkDB
=================

###RethinkDB session store for Express 4.x 

*Inspired by <NAME>'s [Connect Redis](https://github.com/visionmedia/connect-redis)*

*Inspired by guillaumervls [Connect RethinkDB](https://github.com/guillaumervls/connect-rethinkdb)*

##Installation

```npm install express-session-rethinkdb```

##Getting started

Note that you must already have Express Session already installed (```npm install express-session```).

```javascript
var express = require('express');
var session = require('express-session');
var RDBStore = require('express-session-rethinkdb')(session);

var rDBStore = new RDBStore({
  connectOptions: {
    db: 'test',
    host: 'localhost',
    port: '28015'
  },
  table: 'session',
  sessionTimeout: 86400000,
  flushInterval: 60000
});

var app = express();
app.use( require('cookie-parser')() );
app.use( session({
{'fraction_non_alphanumeric': 0.16058791507893305, 'fraction_numerical': 0.020685900925421885, 'mean_word_length': 5.540925266903915, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3643856', 'n_tokens_mistral': 610, 'n_tokens_neox': 561, 'n_words': 149}