1 // Sending commands in response to other commands.
2 // This example runs "type" against every key in the database
4 var client = require("redis").createClient();
6 client.keys("*", function (err, keys) {
7 keys.forEach(function (key, pos) {
8 client.type(key, function (err, keytype) {
9 console.log(key + " is " + keytype);
10 if (pos === (keys.length - 1)) {