A simplistic Redis connection pool for Node.js, leveraging generic-pool for scalable connection management. Current stable version is 3.1.0, with releases following minor version bumps. It provides a seamless abstraction over node_redis (redis client v4+) with features like automatic connection pooling, graceful shutdown, and support for custom logging. Key differentiators include simplicity, TypeScript types shipped, and dependency on redis v4+ using UNLINK and replicate_commands for pattern deletion. Compared to alternatives like redis-pool or ioredis, it focuses on minimal configuration and direct pool control.
npm install node-redis-connection-poolNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a RedisPool, sending SET and GET commands, and properly draining the pool.
Update Node.js to >=8 and redis (npm package) to >=4.
Ensure Redis server version >=4.0.0 or use a compatible alternative.
Use import { RedisPool } from 'node-redis-connection-pool' instead of require.Call pool.drain() then pool.clear() before process exit.
Ensure you use `new RedisPool()` and import correctly: `import { RedisPool } from 'node-redis-connection-pool'`Start Redis server or provide correct host/port in redisOptions.
Upgrade Redis server to version >=4.