mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-07-18 16:44:11 +00:00
Implement zrangebyscore().
This commit is contained in:
parent
a9b979dd03
commit
9a84f63e54
4 changed files with 34 additions and 0 deletions
|
@ -119,6 +119,13 @@ namespace redis {
|
|||
return optional_string_list(m_command.run("SMEMBERS", parKey));
|
||||
}
|
||||
|
||||
auto IncRedis::zrangebyscore (boost::string_ref parKey, double parMin, bool parMinIncl, double parMax, bool parMaxIncl, bool parWithScores) -> opt_string_list {
|
||||
auto batch = make_batch();
|
||||
batch.zrangebyscore(parKey, parMin, parMinIncl, parMax, parMaxIncl, parWithScores);
|
||||
assert(batch.replies().size() == 1);
|
||||
return optional_string_list(batch.replies().front());
|
||||
}
|
||||
|
||||
bool IncRedis::script_flush() {
|
||||
const auto ret = get<StatusString>(m_command.run("SCRIPT", "FLUSH"));
|
||||
return ret.is_ok();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue