express
express copied to clipboard
Updated for modern versions of Node Redis
Example as coded does not function. A simple update to support async/await and the actual function names that Node Redis 4 uses.
Argh! Linting. Will patch.
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.
The linter is not happy with
const
and not happy withasync
. Not sure what else I can do here.
You can keep using var
and replace async/await
with .then()
.