A transparent Redis Sentinel client for Node.js that acts as a drop-in replacement for node_redis RedisClient. It automatically connects to Redis Sentinel, discovers the current master, and handles failover by reconnecting to the new master. The current stable version is 0.2.5. This package is unmaintained and depends on a specific fork of node_redis. It is suitable for legacy projects that need automatic Redis Sentinel failover without manual reconnection logic.
npm install redis-sentinel-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a sentinel client that connects to a list of sentinels and communicates with the Redis master, handles failover transparently, and performs a set/get operation.
Use a more modern alternative like ioredis which has built-in Sentinel support (new Redis({sentinels: [...], name: 'mymaster'})) or redis npm package v4+ with Sentinel support.Always set master_auth_pass if your Redis master requires authentication. Monitor 'switch-master' event to re-establish connections if needed.
Use ioredis for cluster support or manage multiple sentinel clients manually.
Migrate to redis npm package v4+ with its Sentinel support (require('redis').createClient({ url: 'redis://user:pass@host:port' })) or ioredis.Verify sentinel is running and monitoring the correct master name. Check masterOptions for correct host/port.
Add master_auth_pass: 'yourpassword' to the options object.
Ensure you are using require('redis-sentinel-client') and the module is installed.