public static function ClientFactory::setClient in Redis 8
Set client proxy.
File
- src/
ClientFactory.php, line 82
Class
- ClientFactory
- Common code and client singleton, for all Redis clients.
Namespace
Drupal\redisCode
public static function setClient(ClientInterface $interface) {
if (isset(self::$_client)) {
throw new \Exception("Once Redis client is connected, you cannot change client proxy instance.");
}
self::$_clientInterface = $interface;
}