我们可以确认 Redis 流中的一系列条目(或早于某个 id 的条目)吗?

Can we acknowledge a range of entries (or entries older than a certain id) in Redis streams?

是否可以根据一系列 ID 确认 redis 流中的多个条目?我特别感兴趣的是确认某个ID之前的所有内容,而不是一一确认。

或者,是否可以只读取 ID 大于最后确认的 ID 的条目?

无法XACK命令内置的 ID 范围。从技术上讲,可以使用 Lua 脚本来完成。

关于问题的第二部分,请参阅 XREADGROUP 文档。

The special > ID, which means that the consumer want to receive only messages that were never delivered to any other consumer. It just means, give me new messages.