Module: Redis::Commands::Cluster
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/redis/commands/cluster.rb |
Instance Method Summary
-
#asking ⇒ String
Sends
ASKING
command to random node and returns its reply. -
#cluster(subcommand, *args) ⇒ Object
Sends
CLUSTER *
command to random node and returns its reply.
Instance Method Details
#asking ⇒ String
Sends ASKING
command to random node and returns its reply.
# File '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.
# File 'lib/redis/commands/cluster.rb', line 14
def cluster(subcommand, *args) send_command([:cluster, subcommand] + args) end