i18nsite opened a new pull request, #3282: URL: https://github.com/apache/kvrocks/pull/3282
[English](#en) / [中文](#cn) <a id="en"></a> ### English **Issue**: https://github.com/apache/kvrocks/issues/3276 **Description**: This PR adds support for exclusive ranges in the `XPENDING` command, allowing users to specify exclusive start and end IDs using the `(` prefix, similar to `XRANGE` and `XREVRANGE`. - Modified `StreamPendingOptions` to include `exclude_start` and `exclude_end` flags. - Updated `CommandXPending::Parse` to detect the `(` prefix in `start_id` and `end_id` arguments. - Updated `Stream::GetPendingEntries` to correctly filter entries based on the exclusion flags. - Added comprehensive Go tests to verify the exclusive range functionality. <a id="cn"></a> ### 中文 **Issue**: https://github.com/apache/kvrocks/issues/3276 **描述**: 本 PR 为 `XPENDING` 命令添加了对排他范围的支持,允许用户使用 `(` 前缀指定排他的起始和结束 ID,类似于 `XRANGE` 和 `XREVRANGE`。 - 修改了 `StreamPendingOptions`,增加了 `exclude_start` 和 `exclude_end` 标志。 - 更新了 `CommandXPending::Parse`,以检测 `start_id` 和 `end_id` 参数中的 `(` 前缀。 - 更新了 `Stream::GetPendingEntries`,根据排他标志正确过滤条目。 - 添加了全面的 Go 测试以验证排他范围功能。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
