redis-reconnect_with_readonly 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbdb865f95527d8a9e8ab4fc749d30f7b9cf6947
4
- data.tar.gz: b6a976fc9d8e32d30bf1c146b28d407564850659
3
+ metadata.gz: 21d616b3294b61179b1704851f3524c4f0bf1be8
4
+ data.tar.gz: 7d487051f5cd268ae1a7eb4c4b15245400ed320a
5
5
  SHA512:
6
- metadata.gz: f9cb7e568d9578ea7ac101957433cd70b433f8d2779516790f7a7749e00133e752623d11fb6b6250636024181f5e9337d7b554b12f4108172f3e0d1f56d91f3d
7
- data.tar.gz: 0c221329b3f884417b1e8b5123024bf374832947aba838120885898038bf713cb7877efbfb788647a1eea23fe4deb0b9825f1739b6f4e720e7daf8a81a1d04ad
6
+ metadata.gz: 6440817029e71d7c7a066f4cdf5a56d9481af40045f064607f04e26a5eea2f8714c91317fbdc10d1ee833acab3304743a65c822f5408013db883780ca5178037
7
+ data.tar.gz: f35251da92d88a6695311008ba24e659e378ee0a0d2caa3166e603e5ea1d8c6f7deaecbed8ceacb08ee27513dc4d59f24338a994e6587b0548f034c0c9814c7f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.9.1 (2016-08-26)
2
+
3
+ Fixes:
4
+
5
+ * Disconnect!
6
+
1
7
  # 0.9.0 (2016-08-25)
2
8
 
3
9
  Enhancements:
data/README.md CHANGED
@@ -28,9 +28,9 @@ require 'redis/reconnect_with_readonly'
28
28
 
29
29
  ## Configuration
30
30
 
31
- This gem tries reconnection `reconnect_attempts` times.
32
- It will wait `initial_retry_wait * number of retries` second wait on each retry.
33
- The waiting wait can be suppressed up to `max_retry_wait`.
31
+ This gem tries to reconnect `reconnect_attempts` times.
32
+ It will wait `initial_retry_wait * number of retries` seconds on each retry.
33
+ The waiting interval can be suppressed up to `max_retry_wait` seconds.
34
34
 
35
35
  ```
36
36
  Redis::ReconnectWithReadonly.reconnect_attempts = 10 # default: 3 (times)
@@ -32,6 +32,8 @@ class Redis
32
32
  } if logger
33
33
  sleep wait
34
34
  retries += 1
35
+ disconnect
36
+ logger.debug { "Reconnect with readonly: disconnected and retry" } if logger
35
37
  retry
36
38
  else
37
39
  logger.info {
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  class ReconnectWithReadonly
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-reconnect_with_readonly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo