express icon indicating copy to clipboard operation
express copied to clipboard

Updated for modern versions of Node Redis

Open guyroyse opened this issue 11 months ago • 3 comments

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

guyroyse avatar Jul 17 '23 22:07 guyroyse

Argh! Linting. Will patch.

guyroyse avatar Jul 17 '23 22:07 guyroyse

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.

guyroyse avatar Jul 17 '23 22:07 guyroyse

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().

krzysdz avatar Jul 17 '23 22:07 krzysdz