You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
8 lines
197 B
JavaScript
8 lines
197 B
JavaScript
'use strict';
|
|
|
|
var redis = require("redis"),
|
|
client = redis.createClient();
|
|
|
|
// This command is magical. Client stashes the password and will issue on every connect.
|
|
client.auth("somepass");
|