t

scredis.commands

ClusterCommands

trait ClusterCommands extends AnyRef

Implements cluster commands.

Self Type
ClusterCommands with ClusterConnection
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ClusterCommands
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. 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

  7. 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

  8. 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

  9. 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

  10. def clusterFailover(): Future[Unit]

    Forces a slave to perform a manual failover of its master.

  11. 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

  12. 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

  13. 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

  14. 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

  15. 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

  16. 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

  17. 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

  18. def clusterNodes(): Future[Seq[ClusterNode]]

    Get Cluster config for the node.

    Get Cluster config for the node.

    Since

    3.0.0

  19. 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

  20. def clusterReset(): Future[Unit]

    Reset a Redis Cluster node.

    Reset a Redis Cluster node.

    Since

    3.0.0

  21. def clusterResetHard(): Future[Unit]

    Reset a Redis Cluster node with HARD option.

    Reset a Redis Cluster node with HARD option.

    Since

    3.0.0

  22. 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

  23. 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

  24. 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

  25. 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

  26. 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

  27. 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

  28. 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

  29. 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

  30. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  32. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  33. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  34. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. def toString(): String
    Definition Classes
    AnyRef → Any
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped