You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any arguments passed to the method call will be forwarded as command arguments.
121
+
For example, the `$redis->set('name', 'Alice')` call will perform the equivalent of a
122
+
`SET name Alice` command. It's safe to pass integer arguments where applicable (for
123
+
example `$redis->expire($key, 60)`), but internally Redis requires all arguments to
124
+
always be coerced to string values.
125
+
126
+
Each of these commands supports async operation and returns a [Promise](#promises)
127
+
that eventually *fulfills* with its *results* on success or *rejects* with an
128
+
`Exception` on error. See also the following section about [promises](#promises)
129
+
for more details.
116
130
117
131
### Promises
118
132
119
-
Sending commands is async (non-blocking), so you can actually send multiple commands in parallel.
120
-
Redis will respond to each command request with a response message, pending commands will be pipelined automatically.
133
+
Sending commands is async (non-blocking), so you can actually send multiple
134
+
commands in parallel.
135
+
Redis will respond to each command request with a response message, pending
136
+
commands will be pipelined automatically.
121
137
122
-
Sending commands uses a [Promise](https://github.com/reactphp/promise)-based interface that makes it easy to react to when a command is *fulfilled*
123
-
(i.e. either successfully resolved or rejected with an error):
138
+
Sending commands uses a [Promise](https://github.com/reactphp/promise)-based
139
+
interface that makes it easy to react to when a command is completed
140
+
(i.e. either successfully fulfilled or rejected with an error):
0 commit comments