public interface ClusterCommands extends RedisCommands
String clusterMyId()
com.buession.lang.Status clusterAddSlots(int... slots)
slots
- hash slotsList<ClusterSlot> clusterSlots()
Integer clusterCountFailureReports(String nodeId)
详情说明 https://redis.io/commands/cluster-count-failure-reports/
nodeId
- 节点 IdInteger clusterCountFailureReports(byte[] nodeId)
详情说明 https://redis.io/commands/cluster-count-failure-reports/
nodeId
- 节点 IdLong clusterCountKeysInSlot(int slot)
详情说明 http://www.redis.cn/commands/cluster-countkeysinslot.html
slot
- hash slotcom.buession.lang.Status clusterDelSlots(int... slots)
slots
- hash slotscom.buession.lang.Status clusterFlushSlots()
com.buession.lang.Status clusterFailover(ClusterFailoverOption clusterFailoverOption)
clusterFailoverOption
- 切换选项com.buession.lang.Status clusterForget(String nodeId)
nodeId
- 节点 Idcom.buession.lang.Status clusterForget(byte[] nodeId)
nodeId
- 节点 IdList<String> clusterGetKeysInSlot(int slot, long count)
详情说明 http://www.redis.cn/commands/cluster-getkeysinslot.html
slot
- hash slotcount
- 返回数量Long clusterKeySlot(byte[] key)
key
- KeyClusterInfo clusterInfo()
com.buession.lang.Status clusterMeet(String ip, int port)
ip
- Redis 集群节点 IPport
- Redis 集群节点端口List<ClusterRedisNode> clusterNodes()
List<ClusterRedisNode> clusterSlaves(String nodeId)
nodeId
- Master 节点 IdList<ClusterRedisNode> clusterSlaves(byte[] nodeId)
nodeId
- Master 节点 IdList<ClusterRedisNode> clusterReplicas(String nodeId)
nodeId
- 节点 IdList<ClusterRedisNode> clusterReplicas(byte[] nodeId)
nodeId
- 节点 Idcom.buession.lang.Status clusterReplicate(String nodeId)
nodeId
- 节点 Idcom.buession.lang.Status clusterReplicate(byte[] nodeId)
nodeId
- 节点 Idcom.buession.lang.Status clusterReset()
com.buession.lang.Status clusterReset(ClusterResetOption clusterResetOption)
clusterResetOption
- Reset 类型com.buession.lang.Status clusterSaveConfig()
com.buession.lang.Status clusterSetConfigEpoch(long configEpoch)
详情说明 http://www.redis.cn/commands/cluster-set-config-epoch.html
configEpoch
- Config Epochcom.buession.lang.KeyValue<BumpEpoch,Integer> clusterBumpEpoch()
BumpEpoch
com.buession.lang.Status clusterSetSlot(int slot, ClusterSetSlotOption setSlotOption, String nodeId)
slot
- hash slotsetSlotOption
- 命令选项 ClusterSetSlotOption
nodeId
- 节点 Idcom.buession.lang.Status clusterSetSlot(int slot, ClusterSetSlotOption setSlotOption, byte[] nodeId)
slot
- hash slotsetSlotOption
- 命令选项 ClusterSetSlotOption
nodeId
- 节点 Idcom.buession.lang.Status asking()
com.buession.lang.Status readWrite()
com.buession.lang.Status readOnly()
Copyright © 2023 buession.com Inc.. All rights reserved.