@@ -62,6 +62,10 @@ Once [installed](#install), you can use the following code to connect to your
6262local Redis server and send some requests:
6363
6464``` php
65+ <?php
66+
67+ require __DIR__ . '/vendor/autoload.php';
68+
6569$factory = new Clue\React\Redis\Factory();
6670$redis = $factory->createLazyClient('localhost:6379');
6771
@@ -506,7 +510,7 @@ in seconds (or use a negative number to not apply a timeout) like this:
506510$factory->createLazyClient('localhost?timeout=0.5');
507511```
508512
509- By default, this method will keep "idle" connection open for 60s and will
513+ By default, this method will keep "idle" connections open for 60s and will
510514then end the underlying connection. The next request after an "idle"
511515connection ended will automatically create a new underlying connection.
512516This ensure you always get a "fresh" connection and as such should not be
@@ -599,7 +603,7 @@ See also the [`close()`](#close) method.
599603
600604## Install
601605
602- The recommended way to install this library is [ through Composer] ( https://getcomposer.org ) .
606+ The recommended way to install this library is [ through Composer] ( https://getcomposer.org/ ) .
603607[ New to Composer?] ( https://getcomposer.org/doc/00-intro.md )
604608
605609This project follows [ SemVer] ( https://semver.org/ ) .
@@ -619,7 +623,7 @@ It's *highly recommended to use PHP 7+* for this project.
619623## Tests
620624
621625To run the test suite, you first need to clone this repo and then install all
622- dependencies [ through Composer] ( https://getcomposer.org ) :
626+ dependencies [ through Composer] ( https://getcomposer.org/ ) :
623627
624628``` bash
625629$ composer install
@@ -628,7 +632,7 @@ $ composer install
628632To run the test suite, go to the project root and run:
629633
630634``` bash
631- $ php vendor/bin/phpunit
635+ $ vendor/bin/phpunit
632636```
633637
634638The test suite contains both unit tests and functional integration tests.
@@ -645,7 +649,7 @@ To now run the functional tests, you need to supply *your* login
645649details in an environment variable like this:
646650
647651``` bash
648- $ REDIS_URI=localhost:6379 php vendor/bin/phpunit
652+ $ REDIS_URI=localhost:6379 vendor/bin/phpunit
649653```
650654
651655## License
0 commit comments