We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5238032 commit 4f5fd75Copy full SHA for 4f5fd75
lib/big_rails/redis/registry.rb
@@ -69,7 +69,11 @@ def build_wrapped_connection(connection)
69
end
70
71
def verify_connection(connection)
72
- connection.with(&:ping) == "PONG"
+ connection.with do |conn|
73
+ connected = conn.connected?
74
+ conn.ping
75
+ conn.quit unless connected
76
+ end
77
78
79
def validate_name(name)
lib/big_rails/redis/version.rb
@@ -2,6 +2,6 @@
2
3
module BigRails
4
module Redis
5
- VERSION = "0.2.0"
+ VERSION = "0.3.0"
6
7
0 commit comments