aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/redis/examples/auth.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/redis/examples/auth.js')
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/redis/examples/auth.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/redis/examples/auth.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/redis/examples/auth.js
new file mode 100644
index 00000000..6c0a563c
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/redis/examples/auth.js
@@ -0,0 +1,5 @@
+var redis = require("redis"),
+ client = redis.createClient();
+
+// This command is magical. Client stashes the password and will issue on every connect.
+client.auth("somepass");