1
0
Fork 0
mirror of https://github.com/KingDuckZ/incredis synced 2024-11-23 00:33:46 +00:00

Fix return value of hmset and update duckhandy, which fixes expire

This commit is contained in:
King_DuckZ 2017-04-25 09:39:51 +01:00
parent ac26d244a1
commit f798a6999b
2 changed files with 5 additions and 4 deletions

View file

@ -71,7 +71,7 @@ namespace redis {
template <typename... Args>
opt_string_list hmget ( boost::string_ref parKey, Args&&... parArgs );
template <typename... Args>
opt_string_list hmset ( boost::string_ref parKey, Args&&... parArgs );
bool hmset ( boost::string_ref parKey, Args&&... parArgs );
int hincrby ( boost::string_ref parKey, boost::string_ref parField, int parInc );
//Set
@ -108,10 +108,11 @@ namespace redis {
}
template <typename... Args>
auto IncRedis::hmset (boost::string_ref parKey, Args&&... parArgs) -> opt_string_list {
bool IncRedis::hmset (boost::string_ref parKey, Args&&... parArgs) {
static_assert(sizeof...(Args) > 0, "No fields specified");
static_assert(sizeof...(Args) % 2 == 0, "Uneven number of parameters received");
return reply_to_string_list(m_command.run("HMSET", parKey, std::forward<Args>(parArgs)...));
const auto ret = redis::get<StatusString>(m_command.run("HMSET", parKey, std::forward<Args>(parArgs)...));
return ret.is_ok();
}
} //namespace redis

@ -1 +1 @@
Subproject commit c3dee50e5bee92564d6da23a4310c099218b4b56
Subproject commit f6bddac63dd8f49c7263dd1b2e46af9696357f2b