1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-07-12 15:44:13 +00:00

Move *scan function from Command to IncRedis.

Pass down IncRedis as required to fix the build.
This commit is contained in:
King_DuckZ 2016-07-12 10:55:45 +01:00
parent d0242e2721
commit 64b87c52bb
11 changed files with 82 additions and 82 deletions

View file

@ -77,6 +77,22 @@ namespace redis {
m_command.wait_for_disconnect();
}
auto IncRedis::scan (boost::string_ref parPattern) -> scan_range {
return scan_range(scan_iterator(&m_command, false, parPattern), scan_iterator(&m_command, true));
}
auto IncRedis::hscan (boost::string_ref parKey, boost::string_ref parPattern) -> hscan_range {
return hscan_range(hscan_iterator(&m_command, parKey, false, parPattern), hscan_iterator(&m_command, parKey, true));
}
auto IncRedis::sscan (boost::string_ref parKey, boost::string_ref parPattern) -> sscan_range {
return sscan_range(sscan_iterator(&m_command, parKey, false, parPattern), sscan_iterator(&m_command, parKey, true));
}
auto IncRedis::zscan (boost::string_ref parKey, boost::string_ref parPattern) -> zscan_range {
return zscan_range(zscan_iterator(&m_command, parKey, false, parPattern), zscan_iterator(&m_command, parKey, true));
}
auto IncRedis::hget (boost::string_ref parKey, boost::string_ref parField) -> opt_string {
return optional_string(m_command.run("HGET", parKey, parField));
}