public interface ClusterCommands
Modifier and Type | Method and Description |
---|---|
String |
asking() |
String |
clusterAddSlots(int... slots) |
String |
clusterAddSlotsRange(int... ranges)
Takes a list of slot ranges (specified by start and end slots) to assign to the node
|
long |
clusterCountKeysInSlot(int slot) |
String |
clusterDelSlots(int... slots) |
String |
clusterDelSlotsRange(int... ranges)
Takes a list of slot ranges (specified by start and end slots) to remove to the node.
|
String |
clusterFailover() |
String |
clusterFailover(ClusterFailoverOption failoverOption) |
String |
clusterFlushSlots() |
String |
clusterForget(String nodeId) |
List<String> |
clusterGetKeysInSlot(int slot,
int count) |
List<byte[]> |
clusterGetKeysInSlotBinary(int slot,
int count) |
String |
clusterInfo() |
long |
clusterKeySlot(String key) |
List<Map<String,Object>> |
clusterLinks()
return the information of all such peer links as an array, where each array element is a map that contains
attributes and their values for an individual link.
|
String |
clusterMeet(String ip,
int port) |
String |
clusterMyId() |
String |
clusterNodes() |
String |
clusterReplicas(String nodeId) |
String |
clusterReplicate(String nodeId) |
String |
clusterReset() |
String |
clusterReset(ClusterResetType resetType)
resetType can be null for default behavior. |
String |
clusterSaveConfig() |
String |
clusterSetSlotImporting(int slot,
String nodeId) |
String |
clusterSetSlotMigrating(int slot,
String nodeId) |
String |
clusterSetSlotNode(int slot,
String nodeId) |
String |
clusterSetSlotStable(int slot) |
List<String> |
clusterSlaves(String nodeId)
Deprecated.
|
List<Object> |
clusterSlots() |
String |
readonly() |
String |
readwrite() |
String asking()
String readonly()
String readwrite()
String clusterNodes()
String clusterAddSlots(int... slots)
String clusterDelSlots(int... slots)
String clusterInfo()
List<byte[]> clusterGetKeysInSlotBinary(int slot, int count)
String clusterSetSlotStable(int slot)
String clusterFlushSlots()
long clusterKeySlot(String key)
long clusterCountKeysInSlot(int slot)
String clusterSaveConfig()
@Deprecated List<String> clusterSlaves(String nodeId)
clusterReplicas(java.lang.String)
.CLUSTER SLAVES
command is deprecated since Redis 5.String clusterFailover()
String clusterFailover(ClusterFailoverOption failoverOption)
String clusterReset()
String clusterReset(ClusterResetType resetType)
resetType
can be null for default behavior.resetType
- String clusterMyId()
List<Map<String,Object>> clusterLinks()
String clusterAddSlotsRange(int... ranges)
ranges
- slots rangeString clusterDelSlotsRange(int... ranges)
ranges
- slots rangeCopyright © 2022. All rights reserved.