Skip to content

Commit

Permalink
readme: info on how to select a different db
Browse files Browse the repository at this point in the history
  • Loading branch information
DTrejo committed Apr 28, 2012
1 parent 0a732b8 commit 38e38c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Simple example, included as `examples/simple.js`:
var redis = require("redis"),
client = redis.createClient();

// if you'd like to select database 3, instead of 0 (default), call
// client.select(3, function() { /* ... */ });

client.on("error", function (err) {
console.log("Error " + err);
});
Expand Down

0 comments on commit 38e38c5

Please sign in to comment.