xpending
XPENDING
Apply for Redis Developer Course
|
Redis Regular Inspection / Technical Support
|
Redis Enterprise Server
|
|---|
Inspect pending entries
Pending entries have been delivered but not acknowledged.
They were read with XREADGROUP and have not yet been XACK'd.
Usage: XPENDING key group.
Example
| Command> | XPENDING sensor-1234 CG-A |
| Result> |
1) (integer) 2 2) 1538319053569-0 3) 1538319053569-1 4) 1) 1) "C1" 2) "2" |
Shows a summary.
- Pending entry count
- Smallest pending ID
- Largest pending ID
- Consumers that have pending entries (repeated per consumer).
- Consumer name
- Pending count for that consumer
Detailed information
Usage: XPENDING key group start end count.
Example
| Command> | XPENDING sensor-1234 CG-A - + 2 |
| Result> |
1) 1) 1538319053569-0 2) "C1" 3) (integer) 582603 4) (integer) 1 2) 1) 1538319053569-1 2) "C1" 3) (integer) 571917 4) (integer) 2 |
- ID
- Consumer
- Pending time in milliseconds since XREADGROUP
- Delivery count; the second entry was delivered twice.
You can set start and end to specific IDs.
- XPENDING sensor-1234 CG-A 1539035295304 1539035297138 2
You can filter to one consumer.
- XPENDING sensor-1234 CG-A C1
Exclusive range
By default the given IDs are included.
Prefix start and end with '(' to exclude them.
XPENDING sensor-1234 CG-A (1539035295304 (1539035297138 2
Added in version 6.2.
IDLE
Idle time is in milliseconds.
Only entries idle at least that long are returned.
Added in version 6.2.
Syntax
XPENDING key group [IDLE min-idle-time] start end count [consumer]]
- Available since version 5.0.0.
- IDLE and exclusive range were added in version 6.2.
- Time complexity is O(log(N)+M), where N is the number of stream entries and M is the number of pending entries returned.
| << XACK | XPENDING | XCLAIM >> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
