Wrapper around node_redis that creates a Redis client pointing to the master server in a Sentinel-managed setup, with automatic failover when the master goes down. Version 0.3.3 is the latest, with no active releases since 2013. It differs from alternatives like ioredis in that it only supports basic failover and does not handle sentinel reconnection or advanced configurations. The library is deprecated; users should migrate to ioredis or redis with native sentinel support.
npm install redis-sentinelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Redis client managed by Sentinel, demonstrating basic set and get operations with automatic failover.
Replace with ioredis or redis@4.
Implement custom sentinel reconnection logic or use a more robust client.
Always explicitly pass the masterName.
Install redis@0.12.1 or migrate to another library.
Use const Sentinel = require('redis-sentinel').Sentinel(endpoints); then Sentinel.createClient().Use a different client that supports sentinel auth (e.g., ioredis).
Check sentinel endpoints and masterName; ensure at least one sentinel is reachable and has a master.
Ensure 'redis' and 'redis-sentinel' are installed: npm install redis@0.12.1 redis-sentinel.