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
We definitely need to add it to the migration guide and changelog (I'll leave this issue open until we'll do it), but:
As described here, commands from the same "event loop tick" are "batched" anyway.
In case you use .batch as a way to queue commands and execute them later, you can do:
const[getReply,setReply]=awaitclient.multi().get('1').set('2','2').execAsPipeline();// you can "save" a "multi" instance and use it laterconstmulti=client.multi();process.on('message',message=>{if(message==='EXEC'){returnmulti.execAsPipeline();}multi.sAdd('messages',message);});
When updating from v3->v4 I can no longer use the batch() function on the redisClient object.
The migration guide makes no reference of this being unsupported.
setting legacyMode to true does not resolve this.
Environment:
The text was updated successfully, but these errors were encountered: