v1.2.0
版本发布时间: 2017-09-19 16:18:04
clue/reactphp-redis最新发布版本:v2.7.0(2024-01-05 23:57:11)
-
Feature: Support
redis[s]://
URI scheme and deprecate legacy URIs (#60 by @clue)$factory->createClient('redis://:secret@localhost:6379/4'); $factory->createClient('redis://localhost:6379?password=secret&db=4');
-
Feature: Factory accepts Connector from Socket and deprecate legacy SocketClient (#59 by @clue)
If you need custom connector settings (DNS resolution, TLS parameters, timeouts, proxy servers etc.), you can explicitly pass a custom instance of the
ConnectorInterface
:$connector = new \React\Socket\Connector($loop, array( 'dns' => '127.0.0.1', 'tcp' => array( 'bindto' => '192.168.10.1:0' ), 'tls' => array( 'verify_peer' => false, 'verify_peer_name' => false ) )); $factory = new Factory($loop, $connector);