PHP Class Clue\React\Redis\Factory

Afficher le fichier Open project: clue/redis-react Class Usage Examples

Méthodes publiques

Méthode 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

Private Methods

Méthode Description
parseUrl ( string | null $target ) : array

Method Details

__construct() public méthode

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

createClient() public méthode

create redis client connected to address of given redis instance
public createClient ( string | null $target = null ) : React\Promise\PromiseInterface
$target string | null
Résultat React\Promise\PromiseInterface resolves with Client or rejects with \Exception