From f798a6999b0d6c9967a274727ec12bd9a3efdfb4 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Tue, 25 Apr 2017 09:39:51 +0100 Subject: [PATCH] Fix return value of hmset and update duckhandy, which fixes expire --- include/incredis/incredis.hpp | 7 ++++--- lib/duckhandy | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/incredis/incredis.hpp b/include/incredis/incredis.hpp index c92a029..31000a4 100644 --- a/include/incredis/incredis.hpp +++ b/include/incredis/incredis.hpp @@ -71,7 +71,7 @@ namespace redis { template opt_string_list hmget ( boost::string_ref parKey, Args&&... parArgs ); template - 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 - 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(parArgs)...)); + const auto ret = redis::get(m_command.run("HMSET", parKey, std::forward(parArgs)...)); + return ret.is_ok(); } } //namespace redis diff --git a/lib/duckhandy b/lib/duckhandy index c3dee50..f6bddac 160000 --- a/lib/duckhandy +++ b/lib/duckhandy @@ -1 +1 @@ -Subproject commit c3dee50e5bee92564d6da23a4310c099218b4b56 +Subproject commit f6bddac63dd8f49c7263dd1b2e46af9696357f2b