nogara-redis_failover 0.8.10 → 0.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/redis_failover/client.rb +7 -0
- data/lib/redis_failover/version.rb +1 -1
- metadata +2 -2
|
@@ -64,6 +64,13 @@ module RedisFailover
|
|
|
64
64
|
build_clients
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
+
|
|
68
|
+
# Resque wants to use Resque.redis.reconnect to recreate all connections. So
|
|
69
|
+
# we provide ourselves as a client to receive the "reconnect" message
|
|
70
|
+
def client
|
|
71
|
+
self
|
|
72
|
+
end
|
|
73
|
+
|
|
67
74
|
# Specifies a callback to invoke when the current redis node list changes.
|
|
68
75
|
#
|
|
69
76
|
# @param [Proc] a callback with current master and slaves as arguments
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nogara-redis_failover
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.11
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-08-
|
|
12
|
+
date: 2012-08-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: redis
|