public function __construct(Credis_Client $client, $password = NULL)
{
if (!$client instanceof Credis_Client) {
throw new CredisException('Sentinel client should be an instance of Credis_Client');
}
$client->forceStandalone();
// SENTINEL command not currently supported by phpredis
$this->_client = $client;
$this->_password = $password;
$this->_timeout = NULL;
$this->_persistent = '';
$this->_db = 0;
}