1
1
# clue/reactphp-redis [ ![ Build Status] ( https://travis-ci.org/clue/reactphp-redis.svg?branch=master )] ( https://travis-ci.org/clue/reactphp-redis )
2
2
3
- Async [ Redis] ( http ://redis.io/) client implementation, built on top of [ ReactPHP] ( http ://reactphp.org/) .
3
+ Async [ Redis] ( https ://redis.io/) client implementation, built on top of [ ReactPHP] ( https ://reactphp.org/) .
4
4
5
- [ Redis] ( http ://redis.io/) is an open source, advanced, in-memory key-value database.
5
+ [ Redis] ( https ://redis.io/) is an open source, advanced, in-memory key-value database.
6
6
It offers a set of simple, atomic operations in order to work with its primitive data types.
7
7
Its lightweight design and fast operation makes it an ideal candidate for modern application stacks.
8
8
This library provides you a simple API to work with your Redis database from within PHP.
@@ -15,11 +15,11 @@ It enables you to set and query its data or use its PubSub topics to react to in
15
15
* ** Event-driven core** -
16
16
Register your event handler callbacks to react to incoming events, such as an incoming PubSub message event.
17
17
* ** Lightweight, SOLID design** -
18
- Provides a thin abstraction that is [ * just good enough* ] ( http ://en.wikipedia.org/wiki/Principle_of_good_enough)
18
+ Provides a thin abstraction that is [ * just good enough* ] ( https ://en.wikipedia.org/wiki/Principle_of_good_enough)
19
19
and does not get in your way.
20
20
Future or custom commands and events require no changes to be supported.
21
21
* ** Good test coverage** -
22
- Comes with an automated tests suite and is regularly tested against versions as old as Redis v2.6+
22
+ Comes with an automated tests suite and is regularly tested against versions as old as Redis v2.6 and newer.
23
23
24
24
** Table of Contents**
25
25
@@ -130,7 +130,7 @@ reject its value with an Exception and will cancel the underlying TCP/IP
130
130
connection attempt and/or Redis authentication.
131
131
132
132
``` php
133
- $promise = $factory->createConnection ($redisUri);
133
+ $promise = $factory->createClient ($redisUri);
134
134
135
135
$loop->addTimer(3.0, function () use ($promise) {
136
136
$promise->cancel();
@@ -340,7 +340,7 @@ Besides defining a few methods, this interface also implements the
340
340
341
341
#### Commands
342
342
343
- All [ Redis commands] ( http ://redis.io/commands) are automatically available as public methods like this:
343
+ All [ Redis commands] ( https ://redis.io/commands) are automatically available as public methods like this:
344
344
345
345
``` php
346
346
$client->get($key);
@@ -361,8 +361,8 @@ $client->select($database);
361
361
// many more…
362
362
```
363
363
364
- Listing all available commands is out of scope here, please refer to the [ Redis command reference] ( http ://redis.io/commands) .
365
- All [ Redis commands] ( http ://redis.io/commands) are automatically available as public methods via the magic ` __call() ` method.
364
+ Listing all available commands is out of scope here, please refer to the [ Redis command reference] ( https ://redis.io/commands) .
365
+ All [ Redis commands] ( https ://redis.io/commands) are automatically available as public methods via the magic ` __call() ` method.
366
366
367
367
Each of these commands supports async operation and either * resolves* with
368
368
its * results* or * rejects* with an ` Exception ` .
@@ -534,10 +534,11 @@ See also the [`close()`](#close) method.
534
534
The recommended way to install this library is [ through Composer] ( https://getcomposer.org ) .
535
535
[ New to Composer?] ( https://getcomposer.org/doc/00-intro.md )
536
536
537
+ This project follows [ SemVer] ( https://semver.org/ ) .
537
538
This will install the latest supported version:
538
539
539
540
``` bash
540
- $ composer require clue/redis-react:^2.2
541
+ $ composer require clue/redis-react:^2.3
541
542
```
542
543
543
544
See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
@@ -574,4 +575,7 @@ $ REDIS_URI=localhost:6379 php vendor/bin/phpunit
574
575
575
576
## License
576
577
577
- MIT
578
+ This project is released under the permissive [ MIT license] ( LICENSE ) .
579
+
580
+ > Did you know that I offer custom development services and issuing invoices for
581
+ sponsorships of releases and for contributions? Contact me (@clue ) for details.
0 commit comments