Module: Redis::Cluster::CommandLoader

Defined in:
lib/redis/cluster/command_loader.rb

Overview

Load details about Redis commands for Redis Cluster Client

Class Method Summary collapse

Class Method Details

.load(nodes) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/redis/cluster/command_loader.rb', line 12

def load(nodes)
  details = {}

  nodes.each do |node|
    details = fetch_command_details(node)
    details.empty? ? next : break
  end

  details
end