@@ -61,8 +61,8 @@ local Redis server and send some requests:
6161
6262``` php
6363$factory = new Clue\React\Redis\Factory();
64+ $client = $factory->createLazyClient('localhost:6379');
6465
65- $client = $factory->createLazyClient('localhost');
6666$client->set('greeting', 'Hello world');
6767$client->append('greeting', '!');
6868
@@ -118,14 +118,14 @@ $factory = new Clue\React\Redis\Factory(null, $connector);
118118
119119#### createClient()
120120
121- The ` createClient(string $redisUri ): PromiseInterface<Client,Exception> ` method can be used to
121+ The ` createClient(string $uri ): PromiseInterface<Client,Exception> ` method can be used to
122122create a new [ ` Client ` ] ( #client ) .
123123
124124It helps with establishing a plain TCP/IP or secure TLS connection to Redis
125125and optionally authenticating (AUTH) and selecting the right database (SELECT).
126126
127127``` php
128- $factory->createClient('redis:// localhost:6379')->then(
128+ $factory->createClient('localhost:6379')->then(
129129 function (Client $client) {
130130 // client connected (and authenticated)
131131 },
@@ -146,7 +146,7 @@ reject its value with an Exception and will cancel the underlying TCP/IP
146146connection attempt and/or Redis authentication.
147147
148148``` php
149- $promise = $factory->createClient($redisUri );
149+ $promise = $factory->createClient($uri );
150150
151151Loop::addTimer(3.0, function () use ($promise) {
152152 $promise->cancel();
@@ -215,14 +215,14 @@ $factory->createClient('localhost?timeout=0.5');
215215
216216#### createLazyClient()
217217
218- The ` createLazyClient(string $redisUri ): Client ` method can be used to
218+ The ` createLazyClient(string $uri ): Client ` method can be used to
219219create a new [ ` Client ` ] ( #client ) .
220220
221221It helps with establishing a plain TCP/IP or secure TLS connection to Redis
222222and optionally authenticating (AUTH) and selecting the right database (SELECT).
223223
224224``` php
225- $client = $factory->createLazyClient('redis:// localhost:6379');
225+ $client = $factory->createLazyClient('localhost:6379');
226226
227227$client->incr('hello');
228228$client->end();
0 commit comments