mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-07-03 14:14:11 +00:00
New wrapper methods.
This commit is contained in:
parent
e0670ff433
commit
f4c495c5ea
4 changed files with 55 additions and 0 deletions
|
@ -75,6 +75,9 @@ namespace redis {
|
|||
opt_string_list srandmember ( boost::string_ref parKey, int parCount );
|
||||
opt_string srandmember ( boost::string_ref parKey );
|
||||
|
||||
//Script
|
||||
bool script_flush ( void );
|
||||
|
||||
private:
|
||||
static opt_string_list reply_to_string_list ( const Reply& parReply );
|
||||
|
||||
|
@ -83,6 +86,7 @@ namespace redis {
|
|||
|
||||
template <typename... Args>
|
||||
auto IncRedis::hmget (boost::string_ref parKey, Args&&... parArgs) -> opt_string_list {
|
||||
static_assert(sizeof...(Args) > 0, "No fields specified");
|
||||
return reply_to_string_list(m_command.run("HMGET", parKey, std::forward<Args>(parArgs)...));
|
||||
}
|
||||
} //namespace redis
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue