protected requiredCommand ( Predis\ClientInterface $client, string $commandID ) | ||
$client | Predis\ClientInterface | Client connected to Redis. |
$commandID | string | Command ID. |
protected function requiredCommand(ClientInterface $client, $commandID)
{
if (!$client->getCommandFactory()->supportsCommand($commandID)) {
throw new NotSupportedException("'{$commandID}' is not supported by the current command factory.");
}
}