Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
robinsummerhill opened this issue Feb 5, 2025 · 0 comments
Open
Labels

Comments

@robinsummerhill
Copy link

robinsummerhill commented Feb 5, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant