Method | Description | |
---|---|---|
__construct ( React\EventLoop\LoopInterface $loop, React\SocketClient\ConnectorInterface $connector = null, Clue\Redis\Protocol\Factory $protocol = null ) | ||
createClient ( string | null $target = null ) : React\Promise\PromiseInterface | create redis client connected to address of given redis instance |
Method | Description | |
---|---|---|
parseUrl ( string | null $target ) : array |
public __construct ( React\EventLoop\LoopInterface $loop, React\SocketClient\ConnectorInterface $connector = null, Clue\Redis\Protocol\Factory $protocol = null ) | ||
$loop | React\EventLoop\LoopInterface | |
$connector | React\SocketClient\ConnectorInterface | |
$protocol | Clue\Redis\Protocol\Factory |
public createClient ( string | null $target = null ) : React\Promise\PromiseInterface | ||
$target | string | null | |
return | React\Promise\PromiseInterface | resolves with Client or rejects with \Exception |