Class: Redis::Cluster::TransactionAdapter::Internal
- Inherits:
-
RedisClient::Cluster::Transaction
- Object
- RedisClient::Cluster::Transaction
- Redis::Cluster::TransactionAdapter::Internal
show all
- Defined in:
- lib/redis/cluster/transaction_adapter.rb
Instance Method Summary
collapse
Constructor Details
#initialize(client, router, command_builder, node: nil, slot: nil, asking: false) ⇒ Internal
Returns a new instance of Internal.
9
10
11
12
|
# File 'lib/redis/cluster/transaction_adapter.rb', line 9
def initialize(client, router, command_builder, node: nil, slot: nil, asking: false)
@client = client
super(router, command_builder, node: node, slot: slot, asking: asking)
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, **kwargs, &block) ⇒ Object
36
37
38
39
40
|
# File 'lib/redis/cluster/transaction_adapter.rb', line 36
def method_missing(name, *args, **kwargs, &block)
return call(name, *args, **kwargs, &block) if @client.respond_to?(name)
super
end
|
Instance Method Details
#discard ⇒ Object
22
23
24
|
# File 'lib/redis/cluster/transaction_adapter.rb', line 22
def discard
end
|
#exec ⇒ Object
18
19
20
|
# File 'lib/redis/cluster/transaction_adapter.rb', line 18
def exec
end
|
#unwatch ⇒ Object
30
31
32
|
# File 'lib/redis/cluster/transaction_adapter.rb', line 30
def unwatch
end
|