Created
January 28, 2017 04:30
-
-
Save wong2/4229cf2075f4118bba18eac43fe3ef7c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| async function runBatch(client, command, keys, ...args) { | |
| let batch = client.batch() | |
| for (let key of keys) { | |
| batch[command](key, ...args) | |
| } | |
| return batch.execAsync() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment