Feature Request: Pooling
Author: Tomato6966Created Aug 27, 2022Updated Sep 15, 2026
Labelsstale
Add a Option when creating a Redis for: pool: { min: number = 10, max: number = 250 }
This increases production, not having to code it manually with e.g. https://npmjs.org/generic-pool
It would just add a couple functions in all execution methods:
// example:
async function executeRedisCommand(method, ...extras) {
const clientOfPool = await redis.pool.acquire();
const res = clientOfPool[method](...extras);
await redis.pool.release(conn);
return res;
}Thanks!
Source: redis/ioredis