luca3m / redis3m

A C++ Redis client
Apache License 2.0
189 stars 78 forks source link

Can reply object be resused ? #47

Open aidevr opened 7 years ago

aidevr commented 7 years ago

I am running multiple commands and reusing reply object sometimes i find abnormal behavior e.g.

command t = command("SET") << "foor" << "bar" ; reply myreply = conn->run(t);

t = command("GET") << "foor"; myreply = conn->run(t);

luca3m commented 7 years ago

It should be possible, what's the weird behaviour you get?

aidevr commented 7 years ago

I'm actually using the output of first reply as input of another....if I send burst... sometimes these values get mixed

t = command("GET") << "foor"; myreply = conn->run(t);

t = command("SET") << "foor" << myreply.str(); --> Sometimes i get actualy value.. sometimes its empty.sometimes its OK ......and this is a simple example ..running 4,5 command using a single reply object myreply = conn->run(t)