You are here

interface ClientInterface in Redis 8

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

Hierarchy

Expanded class hierarchy of ClientInterface

All classes that implement ClientInterface

2 files declare their use of ClientInterface
PhpRedis.php in src/Client/PhpRedis.php
Predis.php in src/Client/Predis.php

File

src/ClientInterface.php, line 8

Namespace

Drupal\redis
View source
interface ClientInterface {

  /**
   * Get the connected client instance.
   *
   * @return mixed
   *   Real client depends from the library behind.
   */
  public function getClient($host = NULL, $port = NULL, $base = NULL, $password = NULL, $replicationHosts = [], $persistent = FALSE);

  /**
   * Get underlying library name used.
   *
   * This can be useful for contribution code that may work with only some of
   * the provided clients.
   *
   * @return string
   */
  public function getName();

}

Members

Namesort descending Modifiers Type Description Overrides
ClientInterface::getClient public function Get the connected client instance. 2
ClientInterface::getName public function Get underlying library name used. 2