Use a global dataloader for the batch load function
In my personal fork of redis-dataloader I use a final dataloader instance to coalesce redis mget calls. It's super helpful, saving ~3-4 round trips per request.
https://github.com/scf4/ioredis-dataloader/blob/master/index.js
Side note, if you'd be interested I'd like to merge my code into yours by adding node-redis support and passing tests, and then I could help with maintenance of the project.
Hey ok that sounds great thanks!
One thing is I need this library to be compatible with at least node 6. I don't think the await/async stuff is supported until node 7?
Maybe I could put in some babel transpilation, I was thinking about adding support for flow types anyways.
any async/await support in the works or suggestions on a library that is similar? @DubFriend @scf4
@scf4 i think enough time has past where we can make these changes