xinfo
XINFO
Apply for Redis Developer Course
|
Redis Regular Inspection / Technical Support
|
Redis Enterprise Server
|
|---|
Stream information
Key information
Usage: XINFO STREAM key.
Example
| Command> | XINFO STREAM sensor-1234 |
| Result> |
1) length 2) (integer) 14 3) radix-tree-keys 4) (integer) 1 5) radix-tree-nodes 6) (integer) 2 7) groups 8) (integer) 1 9) last-generated-id 10) 1539045611950-0 11) first-entry 12) 1) 1539035295304-0 2) 1) "temperature" 2) "100" 13) last-entry 14) 1) 1539045611950-0 2) 1) "temperature" 2) "112" |
- 1~2) entry count, XLEN
- 3~6) radix-tree info
- 7~8) consumer group count
- 9~10) last generated ID
- 11~12) first entry
- 13~14) last entry
Full key information: FULL
Usage: XINFO STREAM key FULL. This option is available since 6.0.
COUNT <count> limits how many entries are shown.
Example
| Command> | XINFO STREAM sensor-1234 FULL |
| Result> |
1) length 2) (integer) 14 3) radix-tree-keys 4) (integer) 1 5) radix-tree-nodes 6) (integer) 2 7) last-generated-id 8) 1539045611950-0 9) entries 10) 1) 1) 1539035295304-0 2) 1) "temperature" 2) "100" 2) 1) 1539035295305-0 2) 1) "temperature" 2) "101" 3) 1) 1539035295306-0 2) 1) "temperature" 2) "103" ... 11) groups 12) (empty array) |
Consumer group information
Usage: XINFO GROUPS key.
Example
| Command> | XINFO GROUPS sensor-1234 |
| Result> |
1) 1) name 2) "cg-A" 3) consumers 4) (integer) 2 5) pending 6) (integer) 13 7) last-delivered-id 8) 1539035297138-0 |
- 1~2) group name
- 3~4) consumer count
- 5~6) pending entry count
- 7~8) last delivered ID
Consumer information
Usage: XINFO CONSUMERS key group.
Example
| Command> | XINFO CONSUMERS sensor-1234 cg-A |
| Result> |
1) 1) name 2) "C1" 3) pending 4) (integer) 13 5) idle 6) (integer) 12332888 2) 1) name 2) "C2" 3) pending 4) (integer) 0 5) idle 6) (integer) 12312765 |
- 1~2) consumer name
- 3~4) pending entry count
- 5~6) Idle time(millisecond)
Syntax
XINFO [STREAM key [FULL [COUNT <count>]]] [GROUPS key] [CONSUMERS key group] [HELP]
- Available since version 5.0.0.
- FULL is available since 6.0.
- Time complexity is O(log(N)) for STREAM, and O(N) for GROUPS and CONSUMERS.
| << XAUTOCLAIM | XINFO | COMMON Intro>> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
