1
0
Fork 0
mirror of https://github.com/KingDuckZ/incredis synced 2025-08-11 13:09:48 +00:00

Add hmset and expire commands

This commit is contained in:
King_DuckZ 2017-04-25 00:08:17 +01:00
parent 1d7a89fee3
commit ac26d244a1
2 changed files with 15 additions and 0 deletions

View file

@ -141,6 +141,11 @@ namespace redis {
return ret;
}
bool IncRedis::expire (boost::string_ref parKey, RedisInt parTTL) {
const auto ret = redis::get<RedisInt>(m_command.run("EXPIRE", parKey, dhandy::lexical_cast<std::string>(parTTL)));
return (ret == 1 ? true : false);
}
auto IncRedis::reply_to_string_list (const Reply& parReply) -> opt_string_list {
return optional_string_list(parReply);
}