ioredis-auto-pipeline
Automatic redis pipeline support. It can increase your throughput by up to 100%. See https://redis.io/topics/pipelining for more details.
All builtin commands are supported, minus subscribe and psubscribe.
Install
npm install ioredis-auto-pipeline
Example
const Redis = const auto = { const redis = console // number of ops in the queue // In any part of your code, call pipeline() // to schedule a command to be executed in the next // batch of commands. const results = await Promiseall redis redis redis redis redis console await redis}
License
MIT