redis-sentinel-client
Advanced tools
Comparing version 0.1.0 to 0.1.1
11
index.js
/** | ||
... | ||
- can no longer create a sentinel client thru redis.createClient({sentinel:true}) | ||
- @todo copy failover test from gist | ||
Redis Sentinel client, add-on for node_redis client. | ||
See readme for details/usage. | ||
*/ | ||
@@ -53,3 +51,2 @@ | ||
{ | ||
sentinel: false, | ||
disable_flush: true // Disables flush_and_error, to preserve queue | ||
@@ -117,3 +114,3 @@ } | ||
// talker is used by reconnect() below | ||
this.sentinelTalker = new RedisSingleClient.createClient(options.port, options.host, { sentinel: false }); | ||
this.sentinelTalker = new RedisSingleClient.createClient(options.port, options.host); | ||
this.sentinelTalker.on('connect', function(){ | ||
@@ -132,3 +129,3 @@ self.debug('connected to sentinel talker'); | ||
var sentinelListener = new RedisSingleClient.createClient(options.port, options.host, { sentinel: false }); | ||
var sentinelListener = new RedisSingleClient.createClient(options.port, options.host); | ||
sentinelListener.on('connect', function(){ | ||
@@ -135,0 +132,0 @@ self.debug('connected to sentinel listener'); |
{ | ||
"name": "redis-sentinel-client", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Transparent Redis Sentinel client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,4 +0,4 @@ | ||
Redis Sentinel Client | ||
=========================== | ||
# Redis Sentinel Client for Node.js | ||
Supplements [node_redis](https://github.com/mranney/node_redis) with [Redis Sentinel](http://redis.io/topics/sentinel) support. | ||
@@ -39,2 +39,4 @@ | ||
`npm install redis-sentinel-client` | ||
``` | ||
@@ -41,0 +43,0 @@ var RedisSentinel = require('redis-sentinel-client'); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109
38000
7
865