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
Technically the result of your get command within a transaction is QUEUED instead of 0x00ff44 (which is the result of exec command). So if you pass a callback to the getBuffer command, you will get a buffer, which value is QUEUED:
redis.multi().getBuffer('foo',function(_,res){console.log(res.toString());// res is a buffer, value is 'QUEUED'}).exec();
I just released a new version to supports execBuffer for transactions:
redis.multi().get('foo').execBuffer();
It's a little misleading of course since the interface between transaction and pipelining are similar. I'm planning to rewrite this part to make client.multi().getBuffer('test').exec() returns a buffer and deprecate execBuffer. However I'll do it in the next major version since it breaks BC.
The text was updated successfully, but these errors were encountered: