Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisAppCtl ¶
type RedisAppCtl interface {
ServiceCtl() controllers.Controller // ServiceCtl returns the service controller
ConfCtl() appctl.ConfCtl // ConfCtl returns the configuration manager => /etc/redis.conf
LoadStatus() (status RedisAppStatus) // LoadStatus returns redis app load status
}
type RedisAppStatus ¶
type RedisAppStatus struct {
UptimeInDays string `json:"uptime_in_days"` // 已运行天数
TcpPort string `json:"tcp_port"` // 当前监听端口
ConnectedClients string `json:"connected_clients"` // 连接的客户端数量
UsedMemoryRss string `json:"used_memory_rss"` // Redis当前占用的系统内存总量
UsedMemory string `json:"used_memory"` // Redis历史分配内存的峰值
MemFragmentationRatio string `json:"mem_fragmentation_ratio"` // 内存碎片比率
TotalConnectionsReceived string `json:"total_connections_received"` // 运行以来连接过的客户端的总数量
TotalCommandsProcessed string `json:"total_commands_processed"` // 运行以来执行过的命令的总数量
InstantaneousOpsPerSec string `json:"instantaneous_ops_per_sec"` // 服务器每秒钟执行的命令数量
KeyspaceHits string `json:"keyspace_hits"` // 查找数据库键成功的次数
KeyspaceMisses string `json:"keyspace_misses"` // 查找数据库键失败的次数
Hit string `json:"hit"` // 查找数据库键命中率
LatestForkUsec string `json:"latest_fork_usec"` // 最近一次 fork() 操作耗费的微秒数
}
Click to show internal directories.
Click to hide internal directories.