Module: Protocol::Redis::Methods::Cluster
- Defined in:
- lib/protocol/redis/methods/cluster.rb
Overview
Methods for managing Redis clusters.
Instance Method Summary collapse
-
#asking ⇒ Object
Sends ‘ASKING` command to random node and returns its reply.
-
#cluster(subcommand, *arguments) ⇒ Object
Sends the ‘CLUSTER *` command to random node and returns its reply.
Instance Method Details
#asking ⇒ Object
Sends ‘ASKING` command to random node and returns its reply. See <redis.io/commands/asking/> for more details.
26 27 28 |
# File 'lib/protocol/redis/methods/cluster.rb', line 26 def asking call("ASKING") end |
#cluster(subcommand, *arguments) ⇒ Object
Sends the ‘CLUSTER *` command to random node and returns its reply. See <redis.io/commands/cluster-addslots/> for more details.
18 19 20 |
# File 'lib/protocol/redis/methods/cluster.rb', line 18 def cluster(subcommand, *arguments) call("CLUSTER", subcommand.to_s, *arguments) end |