Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Redis session store for Connect
JavaScript
branch: master

This branch is 1 commit ahead, 124 commits behind tj:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitmodules
History.md
Makefile
Readme.md
bm.js
index.html
index.js
package.json
test.js

Readme.md

Connect Redis

connect-redis is a Redis session store backed by node_redis, and is insanely fast :). Requires redis >= 1.3.10 for the SETEX command.

connect-redis >= 1.0.0 support only connect >= 1.0.0.

Installation

via npm:

  $ npm install connect-redis

Options

  • host Redis server hostname
  • port Redis server portno
  • db Database index to use
  • ... Remaining options passed to the redis createClient() method.

Example

var connect = require('connect')
      , RedisStore = require('connect-redis');

connect.createServer(
  connect.cookieDecoder(),
  // 5 minutes
  connect.session({ store: new RedisStore })
);
Something went wrong with that request. Please try again.