trait ClusterCommands extends AnyRef
Implements cluster commands.
- Self Type
- ClusterCommands with ClusterConnection
- Alphabetic
- By Inheritance
- ClusterCommands
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
clusterAddSlots(slot: Long, slots: Long*): Future[Unit]
Assign new hash slots to receiving node
Assign new hash slots to receiving node
- slot
a slot
- slots
more slots
- Since
3.0.0
-
def
clusterCountFailureReports(nodeId: String): Future[Long]
Return the number of failure reports active for a given node.
Return the number of failure reports active for a given node.
- nodeId
node to get failures for
- returns
the number of active failure reports for the node
- Since
3.0.0
-
def
clusterCountKeysInSlot(slot: Long): Future[Long]
Return the number of local keys in the specified hash slot.
Return the number of local keys in the specified hash slot.
- slot
slot to count keys in
- returns
the number of local keys in the specified hash slot
- Since
3.0.0
-
def
clusterDelSlots(slot: Long, slots: Long*): Future[Unit]
Set hash slots as unbound in receiving node.
Set hash slots as unbound in receiving node.
- slot
a slot
- slots
more slots
- Since
3.0.0
-
def
clusterFailover(): Future[Unit]
Forces a slave to perform a manual failover of its master.
-
def
clusterFailoverForce(): Future[Unit]
Forces a slave to perform a manual failover of its master.
Forces a slave to perform a manual failover of its master.
FORCE option: manual failover when the master is down.
- Since
3.0.0
-
def
clusterFailoverTakeover(): Future[Unit]
Forces a slave to perform a manual failover of its master.
Forces a slave to perform a manual failover of its master.
TAKEOVER option: manual failover without cluster consensus. TAKEOVER option implies everything FORCE implies, but also does not uses any cluster authorization in order to failover.
- Since
3.0.0
-
def
clusterForget(nodeId: String): Future[Unit]
Remove a node from the nodes table.
Remove a node from the nodes table.
- nodeId
node to remove
- Since
3.0.0
-
def
clusterGetKeysInSlot(slot: Long, count: Long): Future[Set[String]]
Return local key names in the specified hash slot.
Return local key names in the specified hash slot.
- slot
slot to get key names from
- count
number of keys to return
- returns
local key names in the specified hash slot
- Since
3.0.0
-
def
clusterInfo(): Future[Map[String, String]]
Provides info about Redis Cluster node state.
Provides info about Redis Cluster node state.
- returns
Key-value mapping of Redis Cluster vital parameters.
- Since
3.0.0
-
def
clusterKeyslot(key: String): Future[Long]
Returns the hash slot of the specified key.
Returns the hash slot of the specified key.
- Since
3.0.0
-
def
clusterMeet(ip: String, port: Long): Future[Unit]
Force a node cluster to handshake with another node.
Force a node cluster to handshake with another node.
- ip
ip address of
- Since
3.0.0
-
def
clusterNodes(): Future[Seq[ClusterNode]]
Get Cluster config for the node.
Get Cluster config for the node.
- Since
3.0.0
-
def
clusterReplicate(nodeId: String): Future[Unit]
Reconfigure a node as a slave of the specified master node.
Reconfigure a node as a slave of the specified master node.
- nodeId
master node to replicate
- Since
3.0.0
-
def
clusterReset(): Future[Unit]
Reset a Redis Cluster node.
Reset a Redis Cluster node.
- Since
3.0.0
-
def
clusterResetHard(): Future[Unit]
Reset a Redis Cluster node with HARD option.
Reset a Redis Cluster node with HARD option.
- Since
3.0.0
-
def
clusterSaveConfig(): Future[Unit]
Forces the node to save cluster state on disk.
Forces the node to save cluster state on disk.
- Since
3.0.0
-
def
clusterSetConfigEpoch(configEpoch: Long): Future[Unit]
Set the configuration epoch in a new node.
Set the configuration epoch in a new node.
- configEpoch
the config epoch to set
- Since
3.0.0
-
def
clusterSetSlotImporting(slot: Long, sourceNode: String): Future[Unit]
Set a hash slot in importing state.
Set a hash slot in importing state.
- slot
slot to import
- sourceNode
node to import from
- Since
3.0.0
-
def
clusterSetSlotMigrating(slot: Long, destinationNode: String): Future[Unit]
Set a hash slot in migrating state.
Set a hash slot in migrating state.
- slot
slot to migrate
- destinationNode
node to migrate to
- Since
3.0.0
-
def
clusterSetSlotNode(slot: Long, nodeId: String): Future[Unit]
Bind the hash slot to a different node.
Bind the hash slot to a different node.
- slot
slot to associate with node
- nodeId
node to be associated with slot
- Since
3.0.0
-
def
clusterSetSlotStable(slot: Long): Future[Unit]
Clear any importing / migrating state from hash slot.
Clear any importing / migrating state from hash slot.
- slot
slot to clear of migrating/importing state
- Since
3.0.0
-
def
clusterSlaves(nodeId: String): Future[Seq[ClusterNode]]
List slave nodes of the specified master node.
List slave nodes of the specified master node.
- nodeId
node to list slave nodes of
- returns
slave nodes of the given master
- Since
3.0.0
-
def
clusterSlots(): Future[List[ClusterSlotRange]]
Get array of Cluster slot to node mappings.
Get array of Cluster slot to node mappings.
- returns
List of cluster slot ranges, with respective master and slave nodes.
- Since
3.0.0
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )