XREAD(Redis命令)
句法
XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] id
[id ...]
从一个或多个流中读取数据,仅返回 ID 大于调用者报告的最后一个接收 ID 的条目。此命令具有一个选项,用于在条目不可用时进行阻止,其方式类似于 BRPOP 或 BZPOPMIN 等命令。
请注意,如果您是流新手,在阅读本页之前,我们建议您先阅读我们的 Redis 流简介。
Read data from one or multiple streams, only returning entries with an ID greater than the last received ID reported by the caller. This command has an option to block if items are not available, in a similar fashion to BRPOP or BZPOPMIN and others.
Please note that before reading this page, if you are new to streams, we recommend to read our introduction to Redis Streams.

浙公网安备 33010602011771号