redis-cluster-client 0.7.0 → 0.7.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/cluster/transaction.rb +3 -2
- data/lib/redis_client/cluster.rb +1 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a353443838695a20f364cbc1ea043e97c65a5cdb0ba9f52b92389f61ccfd1037
|
4
|
+
data.tar.gz: c927d2ad3d9a4414bc2478c2bc6c97cf038bdf68fc2eda14f7d59b390fae5467
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cd2eae181262fd2aef5701ac0dcb2bdf9c70ad323ff459596ade8aba0727bd34968d9e0d1031c15b19195d094f9ae4e5376a81b8670fe79a62f7575cb5f6642
|
7
|
+
data.tar.gz: 291d7cf120f00b7a78b73d5942983522a24d7441c1bcf51a0861af4d37baf5b4a15b4fd9613d33be2d4c41d37117c2ba1c4bdefc22c437a61cfa3161957e2b61
|
@@ -33,11 +33,12 @@ class RedisClient
|
|
33
33
|
ensure_node_key(command)
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
36
|
+
def execute(watch: nil, &block)
|
37
37
|
yield self
|
38
38
|
raise ArgumentError, 'empty transaction' if @node_key.nil?
|
39
39
|
|
40
|
-
@router.find_node(@node_key)
|
40
|
+
node = @router.find_node(@node_key)
|
41
|
+
@router.try_delegate(node, :multi, watch: watch, &block)
|
41
42
|
end
|
42
43
|
|
43
44
|
private
|
data/lib/redis_client/cluster.rb
CHANGED
@@ -90,10 +90,7 @@ class RedisClient
|
|
90
90
|
end
|
91
91
|
|
92
92
|
def multi(watch: nil, &block)
|
93
|
-
::RedisClient::Cluster::Transaction
|
94
|
-
.new(@router, @command_builder)
|
95
|
-
.find_node(&block)
|
96
|
-
.multi(watch: watch, &block)
|
93
|
+
::RedisClient::Cluster::Transaction.new(@router, @command_builder).execute(watch: watch, &block)
|
97
94
|
end
|
98
95
|
|
99
96
|
def pubsub
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-cluster-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taishi Kasuga
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis-client
|