File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ It enables you to set and query its data or use its PubSub topics to react to in
29
29
* [ createClient()] ( #createclient )
30
30
* [ Client] ( #client )
31
31
* [ Commands] ( #commands )
32
- * [ Processing ] ( #processing )
32
+ * [ Promises ] ( #promises )
33
33
* [ on()] ( #on )
34
34
* [ close()] ( #close )
35
35
* [ end()] ( #end )
@@ -113,7 +113,7 @@ and keeps track of pending commands.
113
113
114
114
#### Commands
115
115
116
- All [ Redis commands] ( http://redis.io/commands ) are automatically available as public methods (via the magic ` __call() ` method) like this:
116
+ All [ Redis commands] ( http://redis.io/commands ) are automatically available as public methods like this:
117
117
118
118
``` php
119
119
$client->get($key);
@@ -135,11 +135,17 @@ $client->select($database);
135
135
```
136
136
137
137
Listing all available commands is out of scope here, please refer to the [ Redis command reference] ( http://redis.io/commands ) .
138
+ All [ Redis commands] ( http://redis.io/commands ) are automatically available as public methods via the magic ` __call() ` method.
138
139
139
- #### Processing
140
+ Each of these commands supports async operation and either * resolves* with
141
+ its * results* or * rejects* with an ` Exception ` .
142
+ Please see the following section about [ promises] ( #promises ) for more details.
143
+
144
+ #### Promises
140
145
141
146
Sending commands is async (non-blocking), so you can actually send multiple commands in parallel.
142
147
Redis will respond to each command request with a response message, pending commands will be pipelined automatically.
148
+
143
149
Sending commands uses a [ Promise] ( https://github.com/reactphp/promise ) -based interface that makes it easy to react to when a command is * fulfilled*
144
150
(i.e. either successfully resolved or rejected with an error):
145
151
You can’t perform that action at this time.
0 commit comments