1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

readme: info on how to select a different db

This commit is contained in:
David Trejo
2012-04-27 21:17:14 -04:00
parent 0a732b8c0e
commit 38e38c5e7c

View File

@@ -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);
});