Bug:Fix file validation issue
[vnfsdk/refrepo.git] / vnfmarket / src / main / webapp / vnfmarket / node_modules / redis / examples / subqueries.js
1 // Sending commands in response to other commands.
2 // This example runs "type" against every key in the database
3 //
4 var client = require("redis").createClient();
5
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)) {
11                 client.quit();
12             }
13         });
14     });
15 });