original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Get a new Memcached instance.
  
  @param  string|null  $connectionId
  @param  array  $credentials
  @param  array  $options
  @return \Memcached
docstring_tokens: Get a new Memcached instance .