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:
parent
1d7a89fee3
commit
ac26d244a1
2 changed files with 15 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue