Module: Redis::Commands::Cluster

Included in:
Redis::Commands
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/redis-5.0.5/lib/redis/commands/cluster.rb

Instance Method Summary collapse

Instance Method Details

#askingString

Sends ‘ASKING` command to random node and returns its reply.

Returns:

See Also:



23
24
25
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/redis-5.0.5/lib/redis/commands/cluster.rb', line 23

def asking
  send_command(%i[asking])
end

#cluster(subcommand, *args) ⇒ Object

Sends ‘CLUSTER *` command to random node and returns its reply.

Parameters:

  • subcommand (String, Symbol)

    the subcommand of cluster command e.g. ‘:slots`, `:nodes`, `:slaves`, `:info`

Returns:

  • (Object)

    depends on the subcommand

See Also:



14
15
16
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/redis-5.0.5/lib/redis/commands/cluster.rb', line 14

def cluster(subcommand, *args)
  send_command([:cluster, subcommand] + args)
end