Skip to content
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

Updated for modern versions of Node Redis #5225

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

guyroyse
Copy link

Example as coded does not function. A simple update to support async/await and the actual function names that Node Redis 4 uses.

@guyroyse
Copy link
Author

Argh! Linting. Will patch.

@guyroyse
Copy link
Author

The linter is not happy with const and not happy with async. Not sure what else I can do here. I can say—with authority—that the example does not work with Node Redis 4, which is what you get when you run npm install redis as suggested in the comment.

@krzysdz
Copy link
Contributor

krzysdz commented Jul 17, 2023

The linter is not happy with const and not happy with async. Not sure what else I can do here.

You can keep using var and replace async/await with .then().

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

Successfully merging this pull request may close these issues.

None yet

2 participants