You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-01 16:46:54 +03:00
8 lines
184 B
JavaScript
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');
|