Feedback Request: Type Mapping in node-redis #3224
nkaradzhov
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks! We are looking for feedback on the Type Mapping API in node-redis:
client.withTypeMapping()andcreateClient({ typeMapping: ... })).Today, this area has its costs for the project:
In order to make informed decision on long-term direction, we need to better understand how people are using the API in practice.
What we need from this discussion
Context on possible alternatives
We are exploring two alternatives which focus on more powerful parsing control but they also have tradeoffs.
Two short examples of the direction, which revolve around having an optional last argument to each command that provides the command options:
parseMode: 'resp'|'raw'propCommandOptionsparser: (b: Buffer) -> Tprop toCommandOptionsTradeoffs include:
withTypeMapping({[BLOB_STRING]: Buffer})and that will change return types of all commands that returnstringto returnBuffer.No final decision has been made. This discussion is intended to guide that decision based on your feedback.
What to include in your comment
Beta Was this translation helpful? Give feedback.
All reactions