Some features are not yet available or they simply cannot be implemented: - Pipelining commands. - Publish / Subscribe. - MULTI / EXEC transactions (not yet supported by Webdis). The connection parameters supported by this class are: - scheme: must be 'http'. - host: hostname or IP address of the server. - port: TCP port of the server. - timeout: timeout to perform the connection. - user: username for authentication. - pass: password for authentication.
Author: Daniele Alessandri (suppakilla@gmail.com)
Inheritance: implements Predis\Connection\SingleConnectionInterface
 /**
  * Returns a new instance of a connection instance.
  *
  * @param  mixed            $profile    Redis profile.
  * @param  array            $parameters Additional connection parameters.
  * @return WebdisConnection
  */
 protected function getConnection(&$profile = null, array $parameters = array())
 {
     $parameters = $this->getParameters($parameters);
     $profile = $this->getProfile();
     $connection = new WebdisConnection($parameters);
     $connection->executeCommand($profile->createCommand('flushdb'));
     return $connection;
 }
 /**
  * {@inheritdoc}
  */
 protected function createConnectionWithParams($parameters)
 {
     $profile = $this->getCurrentProfile();
     if (!$parameters instanceof ParametersInterface) {
         $parameters = $this->getParameters($parameters);
     }
     $connection = new WebdisConnection($parameters);
     $connection->executeCommand($profile->createCommand('flushdb'));
     return $connection;
 }