Permalink
Browse files

readme: info on how to select a different db

  • Loading branch information...
DTrejo committed Apr 28, 2012
1 parent 0a732b8 commit 38e38c5e7cad361f44d10c71e186491ec7f494bc
Showing with 3 additions and 0 deletions.
  1. +3 −0 README.md
View
@@ -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);
});

0 comments on commit 38e38c5

Please sign in to comment.