Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a58bb7e

Browse filesBrowse files
avmukilanappkins
andauthored
Add count for XREVRANGE (#89)
Co-authored-by: Nick Atkins <nbatkins@gmail.com>
1 parent bd8160f commit a58bb7e
Copy full SHA for a58bb7e

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎sources/core/client.cpp

Copy file name to clipboardExpand all lines: sources/core/client.cpp
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2574,6 +2574,7 @@ namespace cpp_redis {
25742574
client::xrevrange(const std::string &key, const range_options_t &range_args, const reply_callback_t &reply_callback) {
25752575
std::vector<std::string> cmd = {"XREVRANGE", key, range_args.Start, range_args.Stop};
25762576
if (range_args.Count > 0) {
2577+
cmd.emplace_back("COUNT");
25772578
cmd.emplace_back(std::to_string(range_args.Count));
25782579
}
25792580
send(cmd, reply_callback);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.