1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-01 16:46:54 +03:00
Files
node-redis/examples/auth.js
Ruben Bridgewater 7922d4eb85 Small style changes
2015-10-07 16:34:41 +02:00

8 lines
184 B
JavaScript

'use strict';
var redis = require('redis'),
client = redis.createClient();
// The client stashes the password and will reauthenticate on every connect.
client.auth('somepass');