Skip to content

Commit

Permalink
Fixes for Kiwi
Browse files Browse the repository at this point in the history
  • Loading branch information
fictorial committed Apr 6, 2010
1 parent 28ef9d5 commit bda6ede
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
20 changes: 19 additions & 1 deletion README.md
Expand Up @@ -13,8 +13,26 @@ Recent changes completely break backwards compatibility. Sorry, it was time.

## Synopsis

When working from a git clone:

var client = require("./lib/redis-client").createClient();
var sys = require("sys");
var client = require("redisclient").createClient();
client.stream.addListener("connect", function () {
client.info(function (err, info) {
if (err) throw new Error(err);
sys.puts("Redis Version is: " + info.redis_version);
client.close();
});
});

When working with a Kiwi-based installation:

// $ kiwi install redis-client

var sys = require("sys"),
kiwi = require("kiwi"),
client = kiwi.require("redis-client").createClient();

client.stream.addListener("connect", function () {
client.info(function (err, info) {
if (err) throw new Error(err);
Expand Down
16 changes: 16 additions & 0 deletions examples/using-kiwi.js
@@ -0,0 +1,16 @@
// Kiwi is a package manager for Node.js
// http://wiki.github.com/visionmedia/kiwi/getting-started
//
// $ kiwi install redis-client

var sys = require("sys"),
kiwi = require("kiwi"),
client = kiwi.require("redis-client").createClient();

client.stream.addListener("connect", function () {
client.info(function (err, info) {
if (err) throw new Error(err);
sys.puts("Redis Version is: " + info.redis_version);
client.close();
});
});
4 changes: 2 additions & 2 deletions seed.yml
@@ -1,6 +1,6 @@
---
name: redis-node-client
name: redis-client
description: A Redis client
tags: redis
version: 0.1.1
version: 0.2.0

0 comments on commit bda6ede

Please sign in to comment.