ClientInfo class
ClientInfo
Constructors
- ClientInfo({required int id, required String? addr, required int fd, required String? name, required int age, required int idle, required String? flags, required int db, required int subscribed, required int psubscribed, required int multi, required int qbuf, required int qbufFree, required int obl, required int oll, required int omem, required String? events, required String? cmd})
- ClientInfo
Properties
- addr → String?
-
客户端的 IP 地址和端口号,比如 127.0.0.1:6379。
final
- age → int
-
客户端连接的时间(以秒为单位)。
final
- cmd → String?
-
客户端最近执行的命令。
final
- db → int
-
客户端当前选择的数据库的编号。
final
- events → String?
-
客户端是否在等待特定事件(如可读或可写)。
final
- fd → int
-
与客户端相关联的文件描述符。
final
- flags → String?
-
客户端的标志,表示连接的状态,比如是否为订阅者、是否为从节点等。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
客户端的唯一标识符。
final
- idle → int
-
客户端在当前连接中空闲的时间(以秒为单位)。
final
- multi → int
-
如果客户端处于 MULTI 状态(事务状态),会显示为 1。
final
- name → String?
-
客户端的名称,如果设置了的话。
final
- obl → int
-
输出缓冲区的字节数。
final
- oll → int
-
输出缓冲区的列表长度。
final
- omem → int
-
输出缓冲区的内存使用量。
final
- psubscribed → int
-
如果客户端订阅了模式,这里显示其模式订阅的数量。
final
- qbuf → int
-
客户端的查询缓冲区的字节数。
final
- qbufFree → int
-
查询缓冲区的剩余空间。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscribed → int
-
如果客户端订阅了频道,这里会显示其订阅的频道数量。
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited