redis-mpool (v0.8.2) provides connection pool management for Redis databases in Node.js applications. It wraps the node_redis client to create a pool of connections, handling acquisition, release, and automatic reconnection. The library is maintained by CartoDB and has a modest release cadence. It differentiates from generic pooling libraries by being Redis-specific, offering built-in error handling and pool health checks tailored to Redis. Note: This package has not been updated since 2020 and may lack support for newer Redis features like Redis 6 ACLs or TLS connections.
npm install redis-mpoolNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating a Redis connection pool with custom options, acquiring a client, performing a Redis GET command, and releasing the client back to the pool.
Migrate to ioredis or redis@4 with 'createClient' which includes built-in connection pooling.
Use 'max' and 'min' integer properties in pool config.
Implement a health check or use a library like 'ioredis' that handles reconnection transparently.
Pass 'password' in redisOptions instead of 'auth_pass'.
Start Redis server with 'redis-server' or check host/port.
Upgrade to version 0.6.0+ and use pool.acquire().
Increase the 'max' pool option or ensure clients are released after use.