protected function setCredentials($memcached, $credentials)
    {
        list($username, $password) = $credentials;

        $memcached->setOption(Memcached::OPT_BINARY_PROTOCOL, true);

        $memcached->setSaslAuthData($username, $password);
    }
protected function setCredentials($memcached, $credentials)
    {
        list($username, $password) = $credentials;

        $memcached->setOption(Memcached::OPT_BINARY_PROTOCOL, true);

        $memcached->setSaslAuthData($username, $password);
    }
protected function setCredentials ( $ memcached , $ credentials ) { list ( $ username , $ password ) = $ credentials ; $ memcached -> setOption ( Memcached :: OPT_BINARY_PROTOCOL , true ) ; $ memcached -> setSaslAuthData ( $ username , $ password ) ; }
Set the SASL credentials on the Memcached connection.

@param  \Memcached  $memcached
@param  array  $credentials
@return void
Set the SASL credentials on the Memcached connection .