[フレーム]
Docs Pricing
Login Book a meeting Try Redis

XINFO CONSUMERS

Syntax
XINFO CONSUMERS key group
Available since:
Redis Open Source 5.0.0
Time complexity:
O(1)
ACL categories:
@read, @stream, @slow,
Compatibility:
Redis Enterprise and Redis Cloud compatibility

This command returns the list of consumers that belong to the <groupname> consumer group of the stream stored at <key>.

The following information is provided for each consumer in the group:

Note that before Redis 7.2.0, idle used to denote the time passed since last successful interaction. In 7.2.0, inactive was added and idle was changed to denote the time passed since last attempted interaction.

Examples

> XINFO CONSUMERS mystream mygroup
1) 1) name
 2) "Alice"
 3) pending
 4) (integer) 1
 5) idle
 6) (integer) 9104628
 7) inactive
 8) (integer) 18104698
2) 1) name
 2) "Bob"
 3) pending
 4) (integer) 1
 5) idle
 6) (integer) 83841983
 7) inactive
 8) (integer) 993841998

Redis Enterprise and Redis Cloud compatibility

Redis
Enterprise
Redis
Cloud
Notes
✅ Standard
✅ Active-Active
✅ Standard
✅ Active-Active

Return information

Array reply: a list of consumers and their attributes.

History

RATE THIS PAGE
Back to top ↑

AltStyle によって変換されたページ (->オリジナル) /