You are here

public function ClientInterface::getClient in Redis 8

Get the connected client instance.

Return value

mixed Real client depends from the library behind.

2 methods override ClientInterface::getClient()
PhpRedis::getClient in src/Client/PhpRedis.php
Get the connected client instance.
Predis::getClient in src/Client/Predis.php
Get the connected client instance.

File

src/ClientInterface.php, line 15

Class

ClientInterface
Client proxy, client handling class tied to the bare minimum.

Namespace

Drupal\redis

Code

public function getClient($host = NULL, $port = NULL, $base = NULL, $password = NULL, $replicationHosts = [], $persistent = FALSE);