redlock-php
redlock-php copied to clipboard
NOAUTH Authentication required
list($host, $port, $timeout,$auth) = $server;
$redis = new \Redis();
$redis->connect($host, $port, $timeout);
if ($auth) {
$redis->auth($auth);
}