Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Question regarding pipelining #119

Unanswered
erikseulean asked this question in Q&A
Discussion options

In the client implementation, there usually are two functions for each Redis operation.

For example:

client& sadd (const std::string &key, const std::vector< std::string > &members, const reply_callback_t &reply_callback)
std::future<[reply]> sadd (const std::string &key, const std::vector< std::string > &members)

Do both of these support pipelining or just the one that accepts a callback ?

My question is, in the following scenario, would the sadd be executed at the time of invocation or it will be deferred until sync_commit is called ?

const auto f1 = client.sadd("key1", {"v1"});
const auto f2 = client.sadd("key2", {"v2"});
client.sync_commit();
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.