Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Release 0.1.0

  • Loading branch information...
commit b160894f47b9224371a5d68a6374926a5f2222a9 1 parent 07255fd
@tj authored
Showing with 18 additions and 10 deletions.
  1. +5 −0 History.md
  2. +6 −6 Readme.md
  3. +6 −3 lib/connect-redis.js
  4. +1 −1  package.json
View
5 History.md
@@ -1,4 +1,9 @@
+0.1.0 / 2010-09-17
+==================
+
+ * Now using node_redis as the client, much faster
+
0.0.2 / 2010-07-27
==================
View
12 Readme.md
@@ -1,7 +1,7 @@
# Connect Redis
-connect-redis is a Redis session store backed by [node-redis-client](http://github.com/fictorial/redis-node-client).
+connect-redis is a Redis session store backed by [node_redis](http://github.com/mranney/node_redis), and is insanely fast :).
## Installation
@@ -11,7 +11,7 @@ Via git:
via npm:
- $ npm install connect-redis@latest
+ $ npm install connect-redis
## Options
@@ -22,10 +22,10 @@ via npm:
## Example
- var connect = require('connect'),
- RedisStore = require('connect-redis');
+ var connect = require('connect')
+ , RedisStore = require('connect-redis');
connect.createServer(
- connect.cookieDecoder(),
- connect.session({ store: new RedisStore({ maxAge: 150 }) })
+ connect.cookieDecoder(),
+ connect.session({ store: new RedisStore({ maxAge: 150 }) })
);
View
9 lib/connect-redis.js
@@ -9,8 +9,7 @@
* Module dependencies.
*/
-var sys = require('sys'),
- Store = require('connect/middleware/session/store'),
+var Store = require('connect').session.Store,
redis = require('./redis');
/**
@@ -26,7 +25,11 @@ var RedisStore = module.exports = function RedisStore(options) {
this.client = new redis.createClient(options.port, options.host, options);
};
-sys.inherits(RedisStore, Store);
+/**
+ * Inherit from `Store`.
+ */
+
+RedisStore.prototype.__proto__ = Store.prototype;
/**
* Attempt to fetch session by the given `hash`.
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "connect-redis",
"description": "Redis session store for Connect",
- "version": "0.0.2",
+ "version": "0.1.0",
"author": "TJ Holowaychuk <tj@vision-media.ca>",
"directories": { "lib": "." },
"engines": { "node": ">= 0.1.98" }

0 comments on commit b160894

Please sign in to comment.
Something went wrong with that request. Please try again.