Skip to content

Conversation

@andy-stark-redis
Copy link
Contributor

@andy-stark-redis andy-stark-redis commented Mar 6, 2025

DOC-4942

Currently a work in progress - all suggestions welcome :-)

In particular:

  • Is "migration" the right word to use here?
  • Is the basic format OK with the summary table and expanded explanations?
  • Are the existing items important enough to mention?
  • Which other items should we have on this page?
  • Do we want an explicit migration instruction emphasised for each step? (For example, just under the Pipelining section heading, we could say "To migrate: search for instances of pipeline() and replace them with multi()...execAsPipeline()).

@andy-stark-redis andy-stark-redis self-assigned this Mar 6, 2025
@andy-stark-redis andy-stark-redis requested a review from a team March 6, 2025 10:38
Copy link
Collaborator

@dwdougherty dwdougherty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few things to consider, but thus far, looks good to me.

`node-redis` supports only `Promise` objects for results, so
you must always use a `then()` handler or the
[`await`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
operator to receive them.
Copy link
Collaborator

@dwdougherty dwdougherty Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering if await should be used for examples that return promises. Not a JavaScript guy (but I play one at work), so just thinking out loud.

@andy-stark-redis andy-stark-redis merged commit 71a2ec2 into main Apr 15, 2025
5 checks passed
@andy-stark-redis andy-stark-redis deleted the DOC-4942-ioredis-migration-docs branch April 15, 2025 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants