package
0.0.0-20240709090908-02994fe3ba81
Repository: https://github.com/macoli/redis-manager.git
Documentation: pkg.go.dev

# Functions

=================================cluster config================================================= ClusterConfigGet 获取集群配置并校验是否一致.
ClusterConfigSet 批量设置集群配置.
ClusterFlush 清空整个集群所有节点的数据.
ClusterInfoFormat 通过cluster nodes 命令返回的结果,格式化为自定义的结构体数据 ClusterInfo.
InfoMap 格式化 iredis 的 info 命令返回的字符串信息为 map[string]string.
InitClusterConn 初始化集群连接.
InitSentinelManagerConn 初始化哨兵管理连接,用于连接哨兵节点,管理哨兵.
InitSentinelMasterConn 初始化哨兵连接,通过哨兵获取到对应 master name 节点的 master 连接.
InitSentinelSlaveConn 初始化哨兵连接,通过哨兵获取到对应 master name 节点的 slave 只读连接.
InitStandConn 初始化单例 iredis 连接.
InitStandConnList 批量初始化多个 iredis 的连接.
SlotCheck 校验 slot 是否合法范围中: 0-16384.
SlotMove 迁移 slot.
SlotsGetByInstance 从 FormatClusterInfo 中获取对应 redis 实例的所有 slot.
SlowLogFormat 获取 iredis 慢查询并格式化.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author