mirror of
https://github.com/KingDuckZ/incredis
synced 2025-08-11 13:09:48 +00:00
Add INCR command
This commit is contained in:
parent
ee0767e52c
commit
89da7b33fe
2 changed files with 6 additions and 0 deletions
|
@ -156,4 +156,9 @@ namespace redis {
|
|||
const auto ret = redis::get<StatusString>(batch.replies().front());
|
||||
return ret.is_ok();
|
||||
}
|
||||
|
||||
RedisInt IncRedis::incr (boost::string_ref parKey) {
|
||||
const auto ret = redis::get<RedisInt>(m_command.run("INCR", parKey));
|
||||
return ret;
|
||||
}
|
||||
} //namespace redis
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue