hiredis-client 0.20.0 → 0.21.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redis_client/hiredis_connection.rb +14 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93b5a4cd99e3da6ba15e05f25675579e7da238a4170c22f53e3fc1b9251d347b
|
4
|
+
data.tar.gz: a53ef861feb1ad6aee252b82ffe5f26299d1881c057b8c4c9b0feec5850294ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a186f05e532e1eb86e9c874dc3380490dddb2054f13f5f51bae5ff65d11d38b463b046754763935d60cbd7cbe6d5e0dbf542e73079e417ffe88b0d4f1f5c7a36
|
7
|
+
data.tar.gz: 290ece034c9d7544644c51a11322dd2013ee255320f79cf12ca272d8d6266a221994935923015f71474fea59df7dada68eebabdb5d769221847d00212865b48e
|
@@ -39,6 +39,8 @@ class RedisClient
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
+
attr_reader :config
|
43
|
+
|
42
44
|
def initialize(config, connect_timeout:, read_timeout:, write_timeout:)
|
43
45
|
super()
|
44
46
|
@config = config
|
@@ -98,14 +100,20 @@ class RedisClient
|
|
98
100
|
end
|
99
101
|
end
|
100
102
|
rescue SystemCallError, IOError => error
|
101
|
-
raise ConnectionError
|
103
|
+
raise ConnectionError.with_config(error.message, config)
|
104
|
+
rescue Error => error
|
105
|
+
error._set_config(config)
|
106
|
+
raise error
|
102
107
|
end
|
103
108
|
|
104
109
|
def write(command)
|
105
110
|
_write(command)
|
106
111
|
flush
|
107
112
|
rescue SystemCallError, IOError => error
|
108
|
-
raise ConnectionError
|
113
|
+
raise ConnectionError.with_config(error.message, config)
|
114
|
+
rescue Error => error
|
115
|
+
error._set_config(config)
|
116
|
+
raise error
|
109
117
|
end
|
110
118
|
|
111
119
|
def write_multi(commands)
|
@@ -114,7 +122,10 @@ class RedisClient
|
|
114
122
|
end
|
115
123
|
flush
|
116
124
|
rescue SystemCallError, IOError => error
|
117
|
-
raise ConnectionError
|
125
|
+
raise ConnectionError.with_config(error.message, config)
|
126
|
+
rescue Error => error
|
127
|
+
error._set_config(config)
|
128
|
+
raise error
|
118
129
|
end
|
119
130
|
|
120
131
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiredis-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean Boussier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis-client
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.21.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.21.1
|
27
27
|
description:
|
28
28
|
email:
|
29
29
|
- jean.boussier@gmail.com
|