Created
June 3, 2020 03:16
-
-
Save nkreiger/5a69844c1d6843674ff181eec70672bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getList = async (key) => { | |
// perform specific action here | |
return new Promise(resolve => { | |
client.lrange(key, 0, -1, (err, res) => { | |
if (err) console.error(err); | |
resolve(res) | |
}) | |
}) | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment