You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Authentication is now remembered by the client and will be automatically sent to the server on every connection, including any reconnections.
6 lines
182 B
JavaScript
6 lines
182 B
JavaScript
var redis = require("redis"),
|
|
client = redis.createClient();
|
|
|
|
// This command is magical. Client stashes the password and will issue on every connect.
|
|
client.auth("somepass");
|