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

New IncRedisBatch class.

Wraps Batch similarly to how IncRedis wraps Command.
This commit is contained in:
King_DuckZ 2016-07-12 12:07:36 +01:00
parent e02b0a16f5
commit e0670ff433
6 changed files with 129 additions and 4 deletions

View file

@ -77,6 +77,10 @@ namespace redis {
m_command.wait_for_disconnect();
}
IncRedisBatch IncRedis::make_batch() {
return m_command.make_batch();
}
auto IncRedis::scan (boost::string_ref parPattern) -> scan_range {
return scan_range(scan_iterator(&m_command, false, parPattern), scan_iterator(&m_command, true));
}