node-redis icon indicating copy to clipboard operation
node-redis copied to clipboard

commandOptions({returnBuffers: true}) cannot be used with multi()

Open robinsummerhill opened this issue 1 year ago • 0 comments

Description

I need to perform a multi.mGet(...) but return values as Buffers.

This works outside of multi:

client.mGet(commandOptions({returnBuffers:true}), <keys>)

But fails with a type error for multi (mGet expects 1 argument)

multi.mGet(commandOptions({returnBuffers:true}), <keys>)

Is this a bug or is there an alternative to run multi() and return Buffers?

Node.js Version

20.18.2

Redis Server Version

7.4.2

Node Redis Version

4.7.0

Platform

macOS

Logs


robinsummerhill avatar Feb 05 '25 12:02 robinsummerhill