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
{{ message }}
This repository was archived by the owner on Apr 6, 2019. It is now read-only.
Send a command and set the callback which has to be called when the reply has been received.
57
59
If `nullptr` is passed as callback, command is executed and no callback will be called.
58
60
Reply callback is an `std::function<void(reply&)>`.
59
61
62
+
The command is not effectively sent immediately, but stored inside an internal buffer until `commit()` is called.
63
+
64
+
### redis_client& commit(void)
65
+
Send all the commands that have been stored by calling `send()` since the last `commit()` call to the redis server.
66
+
67
+
That is, pipelining is supported in a very simple and efficient way: `client.send(...).send(...).send(...).commit()` will send the 3 commands at once (instead of sending 3 network requests, one for each command, as it would have been done without pipelining).
The command is not effectively sent immediately, but stored inside an internal buffer until `commit()` is called.
149
+
150
+
### redis_subscriber& commit(void)
151
+
Send all the commands that have been stored by calling `send()` since the last `commit()` call to the redis server.
152
+
153
+
That is, pipelining is supported in a very simple and efficient way: `sub.subscribe(...).psubscribe(...).unsubscribe(...).commit()` will send the 3 commands at once (instead of sending 3 network requests, one for each command, as it would have been done without pipelining).
0 commit comments