redis3m icon indicating copy to clipboard operation
redis3m copied to clipboard

Can reply object be resused ?

Open aidevr opened this issue 9 years ago • 2 comments

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);

aidevr avatar Nov 02 '16 12:11 aidevr

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

luca3m avatar Nov 02 '16 15:11 luca3m

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)

aidevr avatar Nov 03 '16 07:11 aidevr