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

Implement hmget() method and use it.

This commit is contained in:
King_DuckZ 2016-07-12 11:40:44 +01:00
parent 64b87c52bb
commit e02b0a16f5
3 changed files with 24 additions and 8 deletions

View file

@ -18,7 +18,6 @@
#include "incredis.hpp"
#include "helpers/compatibility.h"
#include "helpers/lexical_cast.hpp"
#include <utility>
#include <cassert>
#include <ciso646>
@ -50,7 +49,8 @@ namespace redis {
return IncRedis::opt_string_list(std::move(retval));
}
}
}
} //unnamed namespace
IncRedis::IncRedis (std::string &&parAddress, uint16_t parPort) :
m_command(std::move(parAddress), parPort)
{
@ -110,4 +110,8 @@ namespace redis {
auto IncRedis::srandmember (boost::string_ref parKey) -> opt_string {
return optional_string(m_command.run("SRANDMEMBER", parKey));
}
auto IncRedis::reply_to_string_list (const Reply& parReply) -> opt_string_list {
return optional_string_list(parReply);
}
} //namespace redis