Skip to content

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

Open
@robinsummerhill

Description

@robinsummerhill

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions