summaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/redis/examples/subquery.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/redis/examples/subquery.js')
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/redis/examples/subquery.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/redis/examples/subquery.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/redis/examples/subquery.js
deleted file mode 100644
index 861657e1..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/redis/examples/subquery.js
+++ /dev/null
@@ -1,19 +0,0 @@
-var client = require("redis").createClient();
-
-function print_results(obj) {
- console.dir(obj);
-}
-
-// build a map of all keys and their types
-client.keys("*", function (err, all_keys) {
- var key_types = {};
-
- all_keys.forEach(function (key, pos) { // use second arg of forEach to get pos
- client.type(key, function (err, type) {
- key_types[key] = type;
- if (pos === all_keys.length - 1) { // callbacks all run in order
- print_results(key_types);
- }
- });
- });
-});