protected function getMemcached($connectionId, array $credentials, array $options)
    {
        $memcached = $this->createMemcachedInstance($connectionId);

        if (count($credentials) == 2) {
            $this->setCredentials($memcached, $credentials);
        }

        if (count($options)) {
            $memcached->setOptions($options);
        }

        return $memcached;
    }
protected function getMemcached($connectionId, array $credentials, array $options)
    {
        $memcached = $this->createMemcachedInstance($connectionId);

        if (count($credentials) == 2) {
            $this->setCredentials($memcached, $credentials);
        }

        if (count($options)) {
            $memcached->setOptions($options);
        }

        return $memcached;
    }
protected function getMemcached ( $ connectionId , array $ credentials , array $ options ) { $ memcached = $ this -> createMemcachedInstance ( $ connectionId ) ; if ( count ( $ credentials ) == 2 ) { $ this -> setCredentials ( $ memcached , $ credentials ) ; } if ( count ( $ options ) ) { $ memcached -> setOptions ( $ options ) ; } return $ memcached ; }
Get a new Memcached instance.

@param  string|null  $connectionId
@param  array  $credentials
@param  array  $options
@return \Memcached
Get a new Memcached instance .