create() публичный статический Метод

If sentinel parameters are specified, a connection to Sentinel would be initialised first and then find master slave configuration to be used for the Client. Note: First connection made to the Sentinel will be persisted and used for all consequent function calls.
public static create ( mixed $params = null, mixed $options = null, mixed $sentinel_params = null ) : Client
$params mixed
$options mixed
$sentinel_params mixed
Результат Predis\Client
Пример #1
0
 /**
  * Create a new Redis driver
  *
  * @param mixed                $params
  * @param mixed                $options
  * @param mixed                $sentinel_params
  * @param ClientInterface|null $client
  */
 public function __construct($params = null, $options = null, $sentinel_params = null, ClientInterface $client = null)
 {
     if (null === $client) {
         $this->client = PredisClientFactory::create($params, $options, $sentinel_params);
     } else {
         $this->client = $client;
     }
     $this->unit_of_work = new UnitOfWork();
 }