1
0
Fork 0
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:
King_DuckZ 2016-07-12 12:30:17 +01:00
parent e0670ff433
commit f4c495c5ea
4 changed files with 55 additions and 0 deletions

View file

@ -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