*Redis XCLAIM 命令 转移待处理消息的所有权
*语法
XCLAIM key group consumer min-idle-time ID [ID ...] [IDLE ms] [TIME ms-unix-time] [RETRYCOUNT count] [FORCE] [JUSTID]
*说明
转移 pending 消息的所有权到指定消费者。
*返回值
- 数组:消息列表或消息 ID 列表(JUSTID)
*时间复杂度
- O(1)
*版本兼容性
| Redis 版本 | 说明 |
|---|---|
| >= 5.0.0 | 可用 |
*示例
redis-cli XCLAIM mystream mygroup consumer2 3600000 1526569495631-0